|
Post by Torque on Feb 4, 2014 23:05:29 GMT
I'm looking for a way to prevent people from killing right at the spawn in the construction gamemode. I'm not sure how to implement it though, I also don't want to scare away people from the server by kicking them automatically when they have a massive base built.
|
|
|
Post by fld on Feb 5, 2014 6:31:25 GMT
which map?
|
|
|
Post by sopro on Feb 5, 2014 7:00:31 GMT
Just add a teamgate close to spawn which will kill and prevent spawn killers, found in editor mod.
|
|
|
Post by Kloud on Feb 5, 2014 8:03:48 GMT
Just add a teamgate close to spawn which will kill and prevent spawn killers, found in editor mod. If you add a gate @ de_dust2, for example, it will be shit, y'know. Anti-spawnkilling lua would be nice @ UNLIMITED CONSTRUCTION server. It makes people sad, when enemy team blocks the spawn with turrets and gatefields. In my opinion, there should be 10 seconds invulnerability for each player, which has just spawned. It won't ruin balance but give some chance to run from the spawn either kill enemies / destroy constructions.
|
|
|
Post by Torque on Feb 5, 2014 8:32:01 GMT
flood: I'd like something that works regardless of map. I want to make a mapvote script at construction so that if half the server decides it's time for a new map, they can choose their favorite one.
|
|
ex0ristoc
New Member
Posts: 43
USGN#: 34814
Favourite Server: Lasermod
|
Post by ex0ristoc on Feb 5, 2014 13:40:40 GMT
hm I can make antispawnkill.
|
|
|
Post by sopro on Feb 5, 2014 16:51:09 GMT
thought about the map ctf_fortress when I typed that, didnt think about the other maps xD
|
|
|
Post by tonton2d on Feb 8, 2014 1:12:15 GMT
player_spawn_position = {} IN_ZONE = {}
HOOK SPAWN(id) { player_spawn_position[id] = { x = Player(id,x), y = Player(id,y)} IN_ZONE[id] = true }
HOOK MOVE(id,x,y) { actual_position_x[id] = x actual_position_y[id] = y if IN_ZONE[id] == true and player_spawn_position[id].x - actual_position_x[id] > 10 and player_spawn_position[id].y - actual_position_y[id] < 10 then BOOLEAN IN_ZONE[id] = false end }
HOOK HIT(id,source) { if IN_ZONE[id] == true then { say source "you are hitting someone in his zone" } } ---------------------------------------------------------------------------------- that's quickly the lua algorith for : When a player respawn there is a zone depending on his respawn position, if he go out of this zone and get hitted it's not considered as spawnhit, if the player go out of his zone and come back in his zone and get hitted it's not considered as spawnhit, while the player is in the zone (never went out) it's considered as spawnhit,
it should have implemented to check that the player don't camp in his zone, it should work by adding a timer in spawn hook : timer (10000, IN_ZONE_FALSE_FUNCTION(), _idk_)
|
|