Raised This Month: $1944 Target: $400
 486% 

[Orpheu] Silent Footsteps including jump/water sounds (+ natives)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-16-2013 , 16:28   [Orpheu] Silent Footsteps including jump/water sounds (+ natives)
Reply With Quote #1

natives :
  • o_get_user_footsteps(index)
  • o_set_user_footsteps(index, silent=0)

Code :
Spoiler


Credits : Seems arkshine has already used a similar method using SVC_NEWMOVEVARS, "les grands esprits se rencontrent"
Attached Files
File Type: sma Get Plugin or Get Source (silent_footsteps.sma - 899 views - 5.8 KB)
File Type: inc footsteps.inc (177 Bytes, 309 views)
File Type: zip footsteps_sigs.zip (850 Bytes, 173 views)
__________________
- tired and retired -

Last edited by ConnorMcLeod; 11-26-2013 at 01:17.
ConnorMcLeod is offline
micapat
Veteran Member
Join Date: Feb 2010
Location: Nyuu, nyuu.
Old 11-16-2013 , 19:12   Re: [Orpheu] Silent Footsteps including jump/water sounds (+ natives)
Reply With Quote #2

Good job !
__________________
micapat is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Old 11-16-2013 , 22:05   Re: [Orpheu] Silent Footsteps including jump/water sounds (+ natives)
Reply With Quote #3

Ahha finally you share this in AM, nice bro
__________________
Hi, 7 years ago i run nosteam servers and i support nosteam community. So please ban me. Thank you legitmodders.
yokomo is offline
KORD_12.7
Senior Member
Join Date: Aug 2009
Location: Russia, Vladivostok
Old 11-17-2013 , 14:05   Re: [Orpheu] Silent Footsteps including jump/water sounds (+ natives)
Reply With Quote #4

Can we with SV_WriteMovevarsToClient change skyname for players without reconnect?
__________________

Vi Veri Veniversum Vivus Vici
Russian Half-Life and Adrenaline Gamer community
KORD_12.7 is offline
Send a message via ICQ to KORD_12.7
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-17-2013 , 16:00   Re: [Orpheu] Silent Footsteps including jump/water sounds (+ natives)
Reply With Quote #5

No, this is exactly same as change cvar, but for example you could set different sky to connecting players.

Updated, remove task from putinserver and send message at client_connect instead.
__________________
- tired and retired -

Last edited by ConnorMcLeod; 11-17-2013 at 16:02.
ConnorMcLeod is offline
wAyz
Senior Member
Join Date: Feb 2010
Location: Germany
Old 11-24-2013 , 07:38   Re: [Orpheu] Silent Footsteps including jump/water sounds (+ natives)
Reply With Quote #6

Amazing plugin. Is it possible to put it like that: Player A (Spectator) can hear footsteps of Player B (Spectated Player)?
+karma

Last edited by wAyz; 11-24-2013 at 07:38.
wAyz is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-24-2013 , 08:30   Re: [Orpheu] Silent Footsteps including jump/water sounds (+ natives)
Reply With Quote #7

No with the way i used.
Should be possible hooking PM_PlaySound or PlayerStepSound don't remember which one, but on latest build the function has been split at compilation, making it hard to be hooked.
__________________
- tired and retired -

Last edited by ConnorMcLeod; 11-24-2013 at 08:30.
ConnorMcLeod is offline
micapat
Veteran Member
Join Date: Feb 2010
Location: Nyuu, nyuu.
Old 11-25-2013 , 19:18   Re: [Orpheu] Silent Footsteps including jump/water sounds (+ natives)
Reply With Quote #8

Just a small suggestion: it will be nice if you can test in the native "set_user_footsteps" the new value with the old one, to avoid to send a useless message.

I know that it's possible to get the current value with "get_user_footsteps", but then it will need to call 2 natives each time.
__________________
micapat is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-26-2013 , 01:18   Re: [Orpheu] Silent Footsteps including jump/water sounds (+ natives)
Reply With Quote #9

Done, thanks for suggestion.
__________________
- tired and retired -
ConnorMcLeod is offline
Nax0ne
Senior Member
Join Date: Jul 2011
Location: Chile
Old 05-06-2016 , 20:59   Re: [Orpheu] Silent Footsteps including jump/water sounds (+ natives)
Reply With Quote #10

This gave me error:

"New message started when msg '44' has not been sent yet"
__________________
Nax0ne is offline
Reply


Thread Tools
Display Modes

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 06:26.


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