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

Change default steps


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mikka
Member
Join Date: Dec 2018
Old 06-29-2022 , 10:46   Change default steps
Reply With Quote #1

Hi, how to change default footsteps with custom footsteps (ground, water, ladder etc.)?
Mikka is offline
Mikka
Member
Join Date: Dec 2018
Old 06-30-2022 , 09:59   Re: Change default steps
Reply With Quote #2

It is not possible?
Mikka is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 06-30-2022 , 16:26   Re: Change default steps
Reply With Quote #3

https://forums.alliedmods.net/showthread.php?t=45461
http://www.amxmodx.org/api/amxmodx/emit_sound
jimaway is offline
Mikka
Member
Join Date: Dec 2018
Old 07-21-2022 , 06:22   Re: Change default steps
Reply With Quote #4

Sound lock does not work
Mikka is offline
Mikka
Member
Join Date: Dec 2018
Old 07-21-2022 , 06:56   Re: Change default steps
Reply With Quote #5

I make this plugin, but he removes all walking sounds. What should I do to add the sounds of walking up a ladder, swimming?


Quote:
register_forward(FM_PlayerPreThink, "fwd_PlayerPreThink", 0);


new const g_szStepSound[MAX_SOUNDS][] = {

"player/jb/pl_step1.wav",
"player/jb/pl_step2.wav",
"player/jb/pl_step3.wav",
"player/jb/pl_step4.wav"
};



public fwd_PlayerPreThink(id)
{
if(!is_user_alive(id))
return FMRES_IGNORED;

set_pev(id, pev_flTimeStepSound, 99999);

if(g_fNextStep[id] < get_gametime())
{
if(fm_get_ent_speed(id) && (pev(id, pev_flags) & FL_ONGROUND))
emit_sound(id, CHAN_BODY, g_szStepSound[random(MAX_SOUNDS)], VOL_NORM, ATTN_STATIC, 0, PITCH_NORM);

g_fNextStep[id] = get_gametime() + STEP_DELAY;
}
return FMRES_IGNORED;
}

stock Float:fm_get_ent_speed(id)
{
if(!pev_valid(id))
return 0.0;

static Float:vVelocity[3];
pev(id, pev_velocity, vVelocity);

vVelocity[2] = 0.0;

return vector_length(vVelocity);
}
Mikka is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-23-2022 , 05:47   Re: Change default steps
Reply With Quote #6

Use unprecacher kit and unprecache the sounds you don't desire.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Old 08-21-2022, 11:22
RitaHayes
This message has been deleted by Bugsy. Reason: Spam
Old 10-26-2023, 11:39
johnFondren
This message has been deleted by Bugsy. Reason: Spam
Old 01-17-2024, 11:20
BeverlyMyers
This message has been deleted by Bugsy. Reason: Spam
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:15.


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