Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void InteractPassage(string &in asEntity)
- {
- int interactCount = GetLocalVarInt("HitCount");
- AddLocalVarInt("HitCount", 1);
- AddTimer("", 0.5, "DecreaseHitCount");
- CreateParticleSystemAtEntity("", "ps_dust_impact.ps", "AreaParticle_" + RandInt(1, 4), false);
- if (interactCount == 3)
- {
- SetPropHealth("Passage", 0);
- }
- if (GetTimerTimeLeft("limitsound") == 0)
- {
- AddTimer("limitsound", 0.5, "");
- PlayGuiSound("impact_rock_low3.ogg", 1);
- PlayGuiSound("15_rock_break", 1);
- }
- }
- void DecreaseHitCount(string &in asTimer)
- {
- AddLocalVarInt("HitCount", -1);
- }
- void BreakWall(string &in asEntity, string &in type)
- {
- GiveSanityBoostSmall();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement