 |
|
Veteran Member
Join Date: Oct 2004
Location: abort73.com
|

02-16-2007
, 18:40
Re: Custom Weapon Help
|
#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
|
|
|
|