CSQC player alpha 0.0001 (for darkplaces engine only)
By Christian Ice
CSQC Player - test 1 - YouTube
This release is meant only for developers, hopefully they can help me fixing some issues with the code.
For anybody else, feel free to take a look at the code and grab what you need, but at this point a documentation is a waste of time, this is NOT a release meant to be used as a mod in any way (yet).
Anyway the main features are:
Client side player (no prediction whatsoever)
Interpolate model (via qc, the server does it automatically, here I coded it)
full skeletal control (even the jacket that flaps with the wind
Separated animations.
I just coded the basic "legs", so they react to player movements without any information sent from the server.
The upper part has yet to be coded
adaptive stand animation (3 different stand positions for the legs, trying to match the oldest "run" or "walking" frame as much as possible)
Simplified code: i added 4 extra bones on the skeleton, they are not animated at all, so instead of reading an existing bone, adding values and rewrite it I can simply overwrite a '0 0 0' bone, saving some calculations.
the bending animations are subdivided on 4 bones (torso, neck, left arm, right arm) so for both "turning" and "bending" i can give 50% of the movement to each, and it looks very good.
It will be a pain in the ass to align the arms, the aiming and the weapon ... but I'll cry about that later.
THE HELP I NEED WITH THE CODE.
I can't have the custom getstat working (don't bother telling me that there is the code missing, I know, i deleted it because I am trying to keep it clean)
I lose my own player on CSQC ... as soon as I send the model to CSQC, the POV resets to '0 0 0'.
Also the supposed code that should allow the client to recognize the very own player doesn't work.
I used a hack in both cases to regain control.
Note also that once the model is controlled by the client, is visible by default, the engine doesn't make it "invisible" for you.
Probably something is wrong with the defs/builtins/constants ... I can't tell.
If you want to help, please fix the code and paste the fixed/working code here
If you want to go through the code and grab lines and/or ideas, feel free ... but I suggest everybody to wait a little so we can share a 100% working code to have fun with.
Download: http://www.diktatorlab.com/CSQCP.zip
Thanks a lot!
P.S. sorry I had to overwrite the skins of the model, but that was copyrighted stuff.
The model sucks anyway, the final version would have also bones for mouth/eyes, maybe fingers, but it would be some very hi-poly for sure.
By Christian Ice
CSQC Player - test 1 - YouTube
This release is meant only for developers, hopefully they can help me fixing some issues with the code.
For anybody else, feel free to take a look at the code and grab what you need, but at this point a documentation is a waste of time, this is NOT a release meant to be used as a mod in any way (yet).
Anyway the main features are:
Client side player (no prediction whatsoever)
Interpolate model (via qc, the server does it automatically, here I coded it)
full skeletal control (even the jacket that flaps with the wind
Separated animations.
I just coded the basic "legs", so they react to player movements without any information sent from the server.
The upper part has yet to be coded
adaptive stand animation (3 different stand positions for the legs, trying to match the oldest "run" or "walking" frame as much as possible)
Simplified code: i added 4 extra bones on the skeleton, they are not animated at all, so instead of reading an existing bone, adding values and rewrite it I can simply overwrite a '0 0 0' bone, saving some calculations.
the bending animations are subdivided on 4 bones (torso, neck, left arm, right arm) so for both "turning" and "bending" i can give 50% of the movement to each, and it looks very good.
It will be a pain in the ass to align the arms, the aiming and the weapon ... but I'll cry about that later.
THE HELP I NEED WITH THE CODE.
I can't have the custom getstat working (don't bother telling me that there is the code missing, I know, i deleted it because I am trying to keep it clean)
I lose my own player on CSQC ... as soon as I send the model to CSQC, the POV resets to '0 0 0'.
Also the supposed code that should allow the client to recognize the very own player doesn't work.
I used a hack in both cases to regain control.
Note also that once the model is controlled by the client, is visible by default, the engine doesn't make it "invisible" for you.
Probably something is wrong with the defs/builtins/constants ... I can't tell.
If you want to help, please fix the code and paste the fixed/working code here
If you want to go through the code and grab lines and/or ideas, feel free ... but I suggest everybody to wait a little so we can share a 100% working code to have fun with.
Download: http://www.diktatorlab.com/CSQCP.zip
Thanks a lot!
P.S. sorry I had to overwrite the skins of the model, but that was copyrighted stuff.
The model sucks anyway, the final version would have also bones for mouth/eyes, maybe fingers, but it would be some very hi-poly for sure.
Comment