Raised This Month: $ Target: $400
 0% 

Custom Weapon Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 02-28-2007 , 18:59   Re: Custom Weapon Help
Reply With Quote #1

I am able to change the sound for everyone standing around the client by using your method.

But what is still holding me back is the client's point of view - it is still the same sound and animation. I'd like to keep the same animation, but how can I alter which sound is being played?

One thing I can do is block the sound/animation by altering CD_flNextAttack, which tells me that the client has to check that before playing the fire sound. This means there must be a way to alter it. I don't see a CD member that contains that kind of information, so I tried to block the fire and replicate it with my own sound. I am able to play the right animation client-sided, but the sound simply won't play.

I am doing it on the FM_PlayBackEvent hook, setting the animation and executing client_cmd( "spk %s", g_szWpnSound );
But no sound plays. Why would this happen?
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
schnitzelmaker
Senior Member
Join Date: Apr 2006
Location: HERE
Old 03-01-2007 , 03:40   Re: Custom Weapon Help
Reply With Quote #2

for creating custom weapons this can help a lot:http://www.nsmod.org/forums/index.php?showtopic=4679

Its an framework to create custom weapons for Natural Selection.
__________________

Last edited by schnitzelmaker; 03-01-2007 at 03:43.
schnitzelmaker is offline
Reply



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