Raised This Month: $ Target: $400
 0% 

Custom Weapon Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-16-2007 , 18:40   Re: Custom Weapon Help
Reply With Quote #2

Most weapon sounds are handled client-side. When someone shoots a weapon, the server plays an event. Not the register_event type, those are technically "messages." But the EngFunc_PlayBackEvent type.

If you look in the "events/" folder of your mod you will probably find a bunch of blank (or very small) .sc files, with weapon names (ie: carbine.sc). When someone shoots, the server uses PlayBackEvent for the appropiate weapon event.

The client receives the event, and then does bullet holes, muzzle flashes, sounds, etcetera, depending on exactly what event it is. This way the server doesn't have to do that superficial stuff, and it saves processing.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 00:43.


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