
PlayerState_s
PlayerState_s
In the comment for PlayerState_s it says, you can't modify it without modifying msg.c too. Can anyone tell me where msg.c is located?? I can't find it in the QuakeIIIArena folder. 

[color=#FF0000]/callvote kick all_enemies[/color]
Re: PlayerState_s
It's in the engine source-code (quake3.exe). In general, if you're just making a mod, you cannot add/change the items in playerState_t.
Re: PlayerState_s
That's kinda bad
However, I'll add something to MAX_STATS, but that doesn't really help alot.

[color=#FF0000]/callvote kick all_enemies[/color]
Re: PlayerState_s
You cannot increase MAX_STATS either, as that will change the size of the ps.stats[] array, and you won't have recompiled the engine with the update.
Re: PlayerState_s
I've added STAT_PLAYERHEAL, STAT_MEDKITS and STAT_FALLINGDAMAGE till now and all three work perfectly 

[color=#FF0000]/callvote kick all_enemies[/color]
-
- Posts: 4022
- Joined: Sat Mar 12, 2005 6:24 pm
Re: PlayerState_s
Yep, you can add a few extra stats to the enum (but no more than eight or nine or you'll overflow the stats[] array).
Re: PlayerState_s
Yeah, I've seen that
it mustn't go over 16 fields...
Anyone here already manipulated msg.c? I've tried some exe unpackers but no one worked till now... Do you know one that works for quake3.exe?

Anyone here already manipulated msg.c? I've tried some exe unpackers but no one worked till now... Do you know one that works for quake3.exe?
[color=#FF0000]/callvote kick all_enemies[/color]
Re: PlayerState_s
No, you need to build quake3.exe from the source-code - eg the official 1.32b GPL'd source-code release from id, or the updated version from ioquake3.Rawing wrote:I've tried some exe unpackers but no one worked till now... Do you know one that works for quake3.exe?
Note that if you simply want to up the MAX_STATS constant and rebuild quake3.exe with the updated code (so that you can have up to 32 stats), you'll probably want my patch to msg.c (which is in ioquake3).
-
- Posts: 4022
- Joined: Sat Mar 12, 2005 6:24 pm
Re: PlayerState_s
It was all hard-coded? Sloppy, Id, sloppy!