English Entity-07-Disarming Zones icon

14 comments
04.07.17 04:11:28 pm
like 9 like it!
2 kb, 11 Downloads
Talented Doge
User
Offline Off
This is intended to complement with the Entity series by user Pseudon.

> What is a Disarming Zone?
A disarming zone is a specific area that disarms the players entering, and later giving him back all his stuffs when he leaves the zone.

> How to use it?
You have to specify an area in your map that is designated to be disarming zones. It is easy, just find the coordinate of the tiles and MINUS 1 to the value before you put that down to the script.

For example I want 0 to 11 to be the zones, put down 1 and 10.

Code:
1
DisArm = {{1, 10, 1, 10}}
specifies the zones, you notice there are 2 brackets? Yes. You can input multiple zones, just add another bracket when you want to do that. The first 2 values specify the minimum x and the maximum x, followed by the minimum y and the maximum y.

> Can I please see how it actually works?
Sure, here you are.
     

A map for testing is included for you to test it.

Use it freely as you wish, no permission needed.
edited 3×, last 05.07.17 02:57:26 pm
ok This file has been reviewed and approved by ZxC (04.07.17 05:24:38 pm)

Comments

14 comments
Goto Page
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in
18.07.17 06:51:40 am
like I like it!
Up
Deprezsion
User
Offline Off
very very nice.
05.07.17 02:46:10 pm
Up
Talented Doge
User
Offline Off
Oh damn it. I didn't look closely in the cheat sheet
My apology.

Edit: Done, added that thingy.
edited 1×, last 05.07.17 02:58:56 pm
05.07.17 02:40:16 pm
like I like it!
Up
ajm-sh
User
Offline Off
@user Talented Doge: cs2d cmd setweapon will do @user Waldin: 's idea.
Edit : @user Mora_rus won.
05.07.17 02:36:29 pm
like I like it!
Up
Mora_rus
User
Offline Off
@user Talented Doge: i think it's possible, just use player(id,"weapon") or type?
and save this into table(array, w/e) and set this weapon after equip via cs2d cmd setweapon.
05.07.17 02:17:55 pm
Up
Talented Doge
User
Offline Off
@user Ortimh: It should be easy to change the ammo counts, but it isn't easy to see how many are left and I am too lazy to invest more time in finding ammo counts. I would highly appreciate if you would put your time in an easier way to find ammo counts.

@user Waldin: : It isn't possible now I think, because currently there is no server side command to do that.

@user ZxC: It is a disarming zone, rather than a safezone. It is intended to disarm players purely. Of course you can use it along with other safezone scripts.
edited 1×, last 05.07.17 03:04:16 pm
05.07.17 02:30:47 am
like I like it!
Up
Ortimh
User
Offline Off
Great. I'm wondering if this one returns my equipments with the ammos I had or just refills it?
04.07.17 11:03:04 pm
like I like it!
Up
Waldin
User
Offline Off
gud. change weap again to the one I had when i leave there plz
04.07.17 08:31:53 pm
like I like it!
Up
_3yrus
User
Offline Off
8\10 like it
04.07.17 08:14:44 pm
like I like it!
Up
SANTER
User
Offline Off
very usefull dude, +10
04.07.17 06:16:43 pm
like I like it!
Up
Masea
Super User
Online On
@user ZxC: I already got what you meant. But the thing is,
return 1
on cs2d lua hook hit doesn't just do the knife thingy. It also basically makes the script unnecessary. Otherwise, we wouldn't have needed to strip all those weapons if we had simply gone for
return 1
.
edited 1×, last 04.07.17 06:27:29 pm
04.07.17 06:07:41 pm
like I like it!
Up
ZxC
Moderator
Offline Off
@user Masea: Yeah, but some people are too dumb and most likely they'd go in a fight with knife which is quite problematic. This is of course only my opinion, you can prove it otherwise if you want Get my point?
04.07.17 05:59:46 pm
like I like it!
Up
Masea
Super User
Online On
user ZxC has written:
However you can still hurt other players due to the fact that it's technically impossible to strip the knife without having at least one item in hand. You could use cs2d lua hook hit and return 1 whenever a player approaches the disarming zone.
Do not forget this is a disarming zone, not a safe zone. So your suggestion is a bit deviating.
04.07.17 05:36:32 pm
like I like it!
Up
ZxC
Moderator
Offline Off
Neat idea, nothing much to say. However you can still hurt other players due to the fact that it's technically impossible to strip the knife without having at least one item in hand. You could use cs2d lua hook hit and return 1 whenever a player approaches the disarming zone.

By the way, I have removed the unrelated screenshot because it doesn't showcase your script at all. It's viable to post few screenshots of your script because the image hoster might get down someday or other people unable to see the GIF.
04.07.17 04:30:37 pm
like I like it!
Up
ajm-sh
User
Offline Off
Hope someone will not be killed because of this.
To the start Previous 1 Next To the start