Entity-05-Stealth Bush [Fix Update I] 
16 comments The 5th entity, scripted bush.
• To use it, put an entity from the map editor and name it "bush".
• The bush will be created on the entities with that name.
The features of the bush are :
• You get a bush sprite, made of 4 pieces.
• The bush will make players that enter it stealth.
• There is also a sound effect that can be heard by the players if near somebody who walks in a bush.
• The sound can be heard only once each second, no spam.
Credits to @
Rainoth: for distance calculating function.
The sound test has been done by me alone, I just used two opened games and one with 0% sound.
• To use it, put an entity from the map editor and name it "bush".
• The bush will be created on the entities with that name.
The features of the bush are :
• You get a bush sprite, made of 4 pieces.
• The bush will make players that enter it stealth.
• There is also a sound effect that can be heard by the players if near somebody who walks in a bush.
• The sound can be heard only once each second, no spam.
Credits to @


edited 4×, last 22.08.15 10:16:01 am

Comments
16 comments



Log in!
You need to log in to be able to write comments!Log in

Nice update, i suggest you to make a small hudtxt2 for who enter the bush , saying to him what is his armor "valve" (if he wear one)

Possible experiment: make a tile image under the bush that hides players, the image is semi-transparent.
Though I don't have any usage with this at the moment, I quite like this idea and you did a good job
Pseudon! One day, I may try this just as a test somehow.

@
VADemon: Done, I will try to make it so that if you get hit while in bush and having kevlar, you get less when you get out of the bush and then update it.


Uhm, your stealth function… what happens when I enter the bush with armor on? Will it be removed? What if I have damaged kevlar(+helm)? You don't seem to save the armor values at all.
Yes, it could be. To be fair, I didn't think of it, so thank you for that.
But there is a reason why I won't add it, the series I upload as Entity(ies) is made of "plugins" for CS2D, small creative scripts that might come in handy, and the hover text is something simple what can be done by who wants to.
But there is a reason why I won't add it, the series I upload as Entity(ies) is made of "plugins" for CS2D, small creative scripts that might come in handy, and the hover text is something simple what can be done by who wants to.



