Raised This Month: $ Target: $400
 0% 

Curious about trapping stuff sent client <-> server


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Trp. Jed
Member
Join Date: Aug 2004
Old 09-19-2004 , 18:12   Curious about trapping stuff sent client <-> server
Reply With Quote #1

I've read the functions docs about forwarding and so on but I'm still a little unclear as to how it works exactly and whats the best technique to use in each situation.

Example, I have a new weapon model but for reasons best left unexplained, the sequences don't match the ones in the model its replacing. The actually animations are there, but their in a different order. I've created a mapping, so for example the fire animation that was sequence 1 in the original v_model, is #6 in the new one.

Now I have figure out how to make the v_model show sequence #6 but at various times when the player performs a certain action the game is telling it to load another.

Now as these animations changes are recorded in demos, im *assuming* that the triggers are part of the client<->server communication and what I would like to do is trap them and issue an alternative.

So as per the above example, when the client or server (whichever is relevant) tells the client to show sequence 1 for the original v_model, I want to trap it and issue my own command to the client to show #6 instead.

Secondly, is there a generic event sent from the client to the server that can be trapped to tell when they have fired the weapon with either its primary or secondary function? Also can this event be trapped and stopped from being sent to the server but dealt with in another way?

What I want to do is trap when the user fired weapon X, but prevent the server from recieving the fire command and instead catching it in the plugin and doing something else instead as the fire command for that weapon.

Could anyone shed any light on whats the best and most efficient way to achieve the above?
Trp. Jed is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:15.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode