Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions scripting/rtd/perks/necromash.sp
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,16 @@ void NecroMash_SmashClient(const int client)
WritePackFloat(pack2, flPpos[0]); // Position of effects
WritePackFloat(pack2, flPpos[1]); // Position of effects
WritePackFloat(pack2, flPpos[2]); // Position of effects
Handle pack3;
CreateDataTimer(0.5, Timer_NecroMash_Swing2, pack3);
WritePackFloat(pack3, flPpos[0]); // Position of effects
WritePackFloat(pack3, flPpos[1]); // Position of effects
WritePackFloat(pack3, flPpos[2]); // Position of effects
Handle pack4;
CreateDataTimer(3.4, Timer_NecroMash_Crank, pack4);
WritePackFloat(pack4, flPpos[0]); // Position of effects
WritePackFloat(pack4, flPpos[1]); // Position of effects
WritePackFloat(pack4, flPpos[2]); // Position of effects

EmitSoundToAll("misc/halloween/strongman_fast_swing_01.wav", _, _, _, _, _, _, _, flPpos);
}
Expand Down Expand Up @@ -214,6 +224,35 @@ public Action Timer_NecroMash_Whoosh(Handle hTimer, any hPack)
return Plugin_Stop;
}


public Action Timer_NecroMash_Swing2(Handle hTimer, any hPack)
{
ResetPack(hPack);

float fPos[3];
fPos[0] = ReadPackFloat(hPack);
fPos[1] = ReadPackFloat(hPack);
fPos[2] = ReadPackFloat(hPack);

EmitSoundToAll("misc/halloween/strongman_fast_swing_01.wav", _, _, _, _, _, 70, _, fPos);

return Plugin_Stop;
}

public Action Timer_NecroMash_Crank(Handle hTimer, any hPack)
{
ResetPack(hPack);

float fPos[3];
fPos[0] = ReadPackFloat(hPack);
fPos[1] = ReadPackFloat(hPack);
fPos[2] = ReadPackFloat(hPack);

EmitSoundToAll("doors/vent_open2.wav", _, _, _, _, _, 50, _, fPos);

return Plugin_Stop;
}

stock void NecroMash_CreateParticle(const char[] sParticle, float fPos[3])
{
int iParticleId = GetEffectIndex(sParticle);
Expand Down