CSQC client TO server approach
Posted: Tue Nov 11, 2014 11:58 pm
Hi guys, I'm using some little spare time to continue my personal quest to understand and expose my progresses about CSQC skeletal animations
but, today, I started weapons.
And I tought: "But, what if, instead of creating weapons in SSQC, I create all weapon code in CSQC and send only the infos that other players need to know (weapon used by player in that moment, origin - angles - velocity of bullets and so on)via SSQC?"
So I started think how to project the whole thing but I couldn't find any piece of code (I read most of all cleancsqc) that switches the connection client/server.
There's a way to create an entity DIRECTLY on CSQC and then send only updates to SSQC? I usually create an entity, I use SendEntity + WriteCoord/Byte/Stuff in SSQC and readcoord/byte/stuff in CSQC but this makes my idea just difficult to realize. I'd like to make physics projectiles that react to physics body!:D
PS: I use FTEQW
Thanks in advance for any input!
but, today, I started weapons.
And I tought: "But, what if, instead of creating weapons in SSQC, I create all weapon code in CSQC and send only the infos that other players need to know (weapon used by player in that moment, origin - angles - velocity of bullets and so on)via SSQC?"
So I started think how to project the whole thing but I couldn't find any piece of code (I read most of all cleancsqc) that switches the connection client/server.
There's a way to create an entity DIRECTLY on CSQC and then send only updates to SSQC? I usually create an entity, I use SendEntity + WriteCoord/Byte/Stuff in SSQC and readcoord/byte/stuff in CSQC but this makes my idea just difficult to realize. I'd like to make physics projectiles that react to physics body!:D
PS: I use FTEQW
Thanks in advance for any input!