Raised This Month: $51 Target: $400
 12% 

[Orpheu] Step Sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ortega
Junior Member
Join Date: Nov 2009
Old 11-19-2010 , 09:17   [Orpheu] Step Sound
Reply With Quote #1

Hi. I read that step sounds and weapon sounds are in the client-side. Also I read that instead of trying replace we can make own step sound system. I'm wondering about how to do this using the orpheu. My concept: Hook as pre PM_PlayStepSound & _UpdateStepSound, in _play calls function with emit_sound and in second call OrpheuCall( PlayStepSound ). In both Engine hooks Play&update after their call return as OrpheuOverride. Would will this method work properly ?
__________________
Ave duru genus.
Ortega is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-19-2010 , 09:51   Re: [Orpheu] Step Sound
Reply With Quote #2

Not sure but you don't need orpheu. You could play with pev_flTimeStepSound.
Here some code : http://forums.alliedmods.net/showpos...8&postcount=73

Using orpheu, I would set mp_footsteps to 0, then hooking PM_PlayStepSound() as pre, and playing my own sound here. Original sound should not played since there is a check at the start with pmove->movevars->footsteps. I guess it would be a nice method.
__________________

Last edited by Arkshine; 11-19-2010 at 09:57.
Arkshine is offline
Ortega
Junior Member
Join Date: Nov 2009
Old 11-19-2010 , 14:26   Re: [Orpheu] Step Sound
Reply With Quote #3

Works perfect. Tyvm.
__________________
Ave duru genus.
Ortega is offline
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 11-20-2010 , 13:29   Re: [Orpheu] Step Sound
Reply With Quote #4

The best option would be monitoring player model and play a sound on frame which he hits the ground.
__________________
Voi is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-20-2010 , 17:00   Re: [Orpheu] Step Sound
Reply With Quote #5

what?
__________________
Arkshine is offline
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 11-21-2010 , 01:36   Re: [Orpheu] Step Sound
Reply With Quote #6

Monitor leg animation frames.
__________________
Voi is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-21-2010 , 04:01   Re: [Orpheu] Step Sound
Reply With Quote #7

I don't see how it could be the "best option" when you would need more code and something CPU eating when hooking when the engine wants to play the sound will do the same effect at the end. Also CS doesn't work like that.
__________________
Arkshine is offline
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 11-27-2010 , 22:32   Re: [Orpheu] Step Sound
Reply With Quote #8

It would be the most accurate version. I know now that server doesn't monitor frames, its just client side, but how about making code that simulates player leg frames on his own ?
The original footsteps are very inaccurate, especially if you change player maxspeed to your own value, and you can't have at least slightest footstep sound if you're moving too slow. I have no idea how to start this though.
__________________
Voi is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-28-2010 , 05:32   Re: [Orpheu] Step Sound
Reply With Quote #9

Quote:
The original footsteps are very inaccurate, especially if you change player maxspeed to your own value, and you can't have at least slightest footstep sound if you're moving too slow
Feel free to play with PM_UpdateStepSound.
__________________
Arkshine 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 19:00.


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