Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GM:PlayerFootstep( ply, pos, foot, s, vol, rf )
- if( ply:GetModel() == "models/player/police.mdl" or ply:GetModel() == "models/dpfilms/metropolice/playermodels/pm_phoenix_police_female.mdl" or ply:GetModel() == "models/dpfilms/metropolice/playermodels/pm_retrocop_female.mdl" or ply:GetModel() == "models/dpfilms/metropolice/playermodels/pm_skull_police_female.mdl" or ply:GetModel() == "models/dpfilms/metropolice/playermodels/pm_rogue_police_female.mdl" or ply:GetModel() == "models/dpfilms/metropolice/playermodels/pm_elite_police_female.mdll" or ply:GetModel() == "models/metropolice/playermodels/pm_eliteshockcp_v2.mdl" or ply:GetModel() == "models/player/police_fem.mdl" or ply:GetModel() == "models/police05.mdl" or ply:GetModel() == "models/police04.mdl" or ply:GetModel() == "models/police03.mdl" or ply:GetModel() == "models/police02.mdl" or ply:GetModel() == "models/police01.mdl" or ply:GetModel() == "models/policeadj.mdl" or ply:GetModel() == "models/policedel.mdl" or ply:GetModel() == "models/policerct.mdl" or ply:GetModel() == "models/policesql.mdl" or ply:GetModel() == "models/policesec.mdl" ) then
- if( ply:GetVelocity():Length2D() > 150 ) then
- if( foot == 0 ) then
- ply:EmitSound( "NPC_MetroPolice.RunFootstepLeft" );
- else
- ply:EmitSound( "NPC_MetroPolice.RunFootstepRight" );
- end
- else
- if( foot == 0 ) then
- ply:EmitSound( "NPC_MetroPolice.FootstepLeft" );
- else
- ply:EmitSound( "NPC_MetroPolice.FootstepRight" );
- end
- end
- return;
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement