![∗](img/star.gif)
║
╠
![•](img/dot.gif)
╠
![•](img/dot.gif)
║
╠═══
![∗](img/star.gif)
║
╠═
![•](img/dot.gif)
╠│It's now using tween_rotate which was bugged in earlier cs2d versions.
║
╠═══
![∗](img/star.gif)
║
╠
![•](img/dot.gif)
╠
![•](img/dot.gif)
╠
![•](img/dot.gif)
╠
![•](img/dot.gif)
╠
![•](img/dot.gif)
╠
![•](img/dot.gif)
║
╠═══
![∗](img/star.gif)
║
╠
![•](img/dot.gif)
╠│If true, then if owner of it will exit buildings will be destroyed.
║
╠
![•](img/dot.gif)
╠│This is image will be drawn under turret barrel.
║
╠═══
![∗](img/star.gif)
║
╠
![•](img/dot.gif)
╠│Name of turret.
║
╠
![•](img/dot.gif)
╠│Projectile ID - thing which will be shot from turret.
╠│For more information see:
![cs2d cmd](img/i_codehelp.png)
║
╠
![•](img/dot.gif)
╠│Health of turret, if it health will reach 0 when shot turrent will be destroyed
║
╠
![•](img/dot.gif)
╠│Price of turret, player have to pay when he builds it.
║
╠
![•](img/dot.gif)
╠│This image will be drawn as turret barrel.
║
╠
![•](img/dot.gif)
╠│Depends on gamemode, if it's deathmatch and it's set to true it will only shoot owner of cannon.
╠│And if it's deathmatch and it's set to false then it will shoot everyone but owner.
╠│If gamemode is team based and it's set to true it will only shoot owner team members, else enemies.
║
╠
![•](img/dot.gif)
╠│Range of player detecting.
║
╠
![•](img/dot.gif)
╠│If -1 projectile will fly distance from turret position to player position, else it will use flydist number.
║
╠
![•](img/dot.gif)
╠│Delay beetwen shots.
║
╠
![•](img/dot.gif)
╠│Aiming time (Time for turret to wait since it found player).
╠│It's also be going time for
![cs2d cmd](img/i_codehelp.png)
║
╠
![•](img/dot.gif)
╠│If true, building will explode when destroyed.
║
╠
![•](img/dot.gif)
╠│Explosion size.
║
╠
![•](img/dot.gif)
╠│Explosion damage.
║
╠
![•](img/dot.gif)
╠│Additional condition for shooting projectile
╠│id - Player ID.
╠│m - Pointer to turret table.
╠│t - Pointer to turret configuration table.
╠│Function should return boolean, True if projectile can be shot or False/Nil if not.
║
╚═══
![∗](img/star.gif)
1
2
3
4
5
6
7
2
3
4
5
6
7
f_if = function(id, m, t) 	if player(id, "health") < player(id, "maxhealth") then 		return true; 	else 		return false; 	end end;
edited 6×, last 05.02.14 07:25:18 pm
Approved by Starkkz
Download
6 kb, 913 Downloads