Scripts / Hidden sniper zone script.

Author
Message
AceRimmer
Reviewed GameGuru on Steam
9
Years of Service
User Offline
Joined: 28th Feb 2015
Playing: classic British heavy metal mostly
Posted: 2nd Jan 2017 17:08 Edited at: 2nd Jan 2017 17:57
this one gives a randomly timed hurt to the player accompanied by a sound (bullet shot, machine gun burst or whatever) while they are in a zone. Add your own sound.
Credits: Adapted from Player Enters Hurt Zone, by Northern
add your gunshot sound to the entity sound slot 0. if you don't add a sound it just acts as a zone where you get a random hurt every now and then.
(adjust the randomness inside in the script.)

hope this is handy for someone.
Use in open areas near buildings,for example.
tip: the hurt-direction marker in your hud indicates where the "bullet" came from which is the zone's marker. so you can mess about with different shaped zones to get the marker where you want.
note: I found out that if you go into waypoint edit, you can add more star points to zones, making more complex zone shapes if you need to, rather than using several zones to cover an irregularly shaped open area.

and to accompany the above, this one just plays a sound at random intervals (ricochet perhaps) when player is in a zone. You could use this for effect when player is under cover near a sniper zone.

Attachments

Login to view attachments
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 3rd Jan 2017 00:55
this a good idea and neat execution
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Login to post a reply

Server time is: 2024-05-22 00:57:30
Your offset time is: 2024-05-22 00:57:30