Author Topic: Kill when crouch?  (Read 652 times)

I made this new TDM, but it makes gameplay unfair when you are able to crouch.

Is there any add-on or way to event tht would not allow crouching? or kill you when you tried to?

Use a playertype that can't crouch.

I have to use top-down player.

i used a way with zones for a topdown TDM where you can't crouch :D
make a 5 high space with a baseplate on top which is clear/unrendered, put a zone on it that goes down a brick, adding 1 "zone" when you enter, minusing 1 when you leave it, when you leave, if "zone" is 0, you die :D

hmm, forgot, lemme get you a save so you can see it, goes in slate/skylands

Ah, makes sense. Thanks.

Why don't you just combine the Top-down player with the no-crouch player?
Just make a no-crouch-top-down-playertype

i used a way with zones for a topdown TDM where you can't crouch :D
make a 5 high space with a baseplate on top which is clear/unrendered, put a zone on it that goes down a brick, adding 1 "zone" when you enter, minusing 1 when you leave it, when you leave, if "zone" is 0, you die :D
I just have a single evented brick before a player enters the arena at all.

The player would have to click this brick for it to work.
Code: [Select]
[0]  onActivate -> self -> incrementPrintCount -> 5
[33] onActivate -> self -> incrementPrintCount -> 5
[0]  onPrintCountOverFlow -> self -> incrementPrintCount -> 5
[33] onPrintCountOverFlow -> self -> incrementPrintCount -> 5
[0] onPrintCountOverFlow -> self -> VCE_ifValue -> <var:pl:crouching> -> Equals -> 1
[0] onVariableTrue -> player -> Kill
[0] onVariableTrue -> client -> chatMsg -> You cannot crouch in this minigame!
[0] onActivate -> namedBrick(Arena) -> setPlayerTransform
This would keep a loop for any player that clicked this, and all players that click this, and check if the player is crouching. If the player is, the player dies and gets a nice message.

Orthone, couldn't you make it so that you don't need to click it by using OnMiniGameReset???

Thanks for all your help guys. But FrostBite already found a much easier way to do it.
onPlayerTouch-> VCE_ifValue-> <var:pl:crouching> -> = -> 1
onVariableTrue-> Player-> kill
onVariableTure-> client...ect

This was similar to Orthones just a bit easier and did not require clicking.

Thank you all for helping though.