plugboyuk
06-17-2002, 01:40 AM
Okay, I've been using Quake III editing sites for most of my reference, and it appears that a few core things that QIII coders rely on are missing, and I was wondering if anyone had any ideas on how to get around them...
I'm trying to change the speed of a character based on what class he is. I want to multiply a scout's speed by 1.5, making him 50% faster... But first I need to know what class tha client is.
The place where you can alter his speed is located in a bg file, and is used so the client can predict his location without talking to the server. This means the only thing I have to work with is a playerstate_t, as it is the only thing shared between both the client and the server.
So my first thought was to add a new variable to the playerstate_t class, but that screws everything up, and my map appears with no entities at all on it.
Then I notice a comment above the playerstate struct, which says to change the contents of the playerstate I need to make changes to msg.c.
Unfortunately, there is no msg.c :-(
I also can't seem to get CVars to work in the bg file, so I'm pretty lost with what I can do next.
Any help would be most appreciated.
Chris
I'm trying to change the speed of a character based on what class he is. I want to multiply a scout's speed by 1.5, making him 50% faster... But first I need to know what class tha client is.
The place where you can alter his speed is located in a bg file, and is used so the client can predict his location without talking to the server. This means the only thing I have to work with is a playerstate_t, as it is the only thing shared between both the client and the server.
So my first thought was to add a new variable to the playerstate_t class, but that screws everything up, and my map appears with no entities at all on it.
Then I notice a comment above the playerstate struct, which says to change the contents of the playerstate I need to make changes to msg.c.
Unfortunately, there is no msg.c :-(
I also can't seem to get CVars to work in the bg file, so I'm pretty lost with what I can do next.
Any help would be most appreciated.
Chris