English Customizable Turrets 1.01 icon

31 comments
11.02.13 09:17:39 pm
like 29 like it!
6 kb, 466 Downloads
mafia_man
User
Offline Off
╔═══∗ Info

• Author: mafia_man
• Version: 1.01

╠═══∗ Changelog

╠═• 1.01
╠│It's now using tween_rotate which was bugged in earlier cs2d versions.

╠═══∗ Features

• Custom turrets.
• Destroyable turrets.
• Configurable.
• Highly customizable.
• Easy to use.
• Up to 9 turrets because of single menu. (But it can be expanded to infinite)

╠═══∗ Configurable things

• destroyonexit - True/False
╠│If true, then if owner of it will exit buildings will be destroyed.

• gfxbase - Path to graphics
╠│This is image will be drawn under turret barrel.

╠═══∗ Customizable turret fields

• name - String
╠│Name of turret.

• projid - Number (1-91)
╠│Projectile ID - thing which will be shot from turret.
╠│For more information see: cs2d cmd spawnprojectile

• health - Number (1-X)
╠│Health of turret, if it health will reach 0 when shot turrent will be destroyed

• price - Number (0-X)
╠│Price of turret, player have to pay when he builds it.

• gfx - Path to graphics
╠│This image will be drawn as turret barrel.

• shootself - True/False
╠│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.

• range - Number (0-X)
╠│Range of player detecting.

• flydist - Number (-1, 0-X)
╠│If -1 projectile will fly distance from turret position to player position, else it will use flydist number.

• shoot_delay - Number (1-X)
╠│Delay beetwen shots.

• aim_delay - Number (1-X)
╠│Aiming time (Time for turret to wait since it found player).
╠│It's also be going time for cs2d cmd tween_rotate which doesn't work currently.

• explode - True/False
╠│If true, building will explode when destroyed.

• exp_size - Number (1-X)
╠│Explosion size.

• exp_damage - Number (1-X)
╠│Explosion damage.

• f_if - Function(id, m, t)/Nil
╠│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.

╚═══∗ Conditional function example
Code:
1
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;
imageimageimageimageimage
edited 6×, last 05.02.14 07:25:18 pm
ok This file has been reviewed and approved by Starkkz (30.11.15 02:00:26 am)

Comments

31 comments
Goto Page
To the start Previous 1 2 Next To the start

Log in!

You need to log in to be able to write comments!Log in
21.04.15 12:10:29 pm
like I like it!
Up
Louie
User
Offline Off
Nice script.
17.03.15 07:25:51 pm
like I like it!
Up
like cs2d
User
Offline Off
lol it look like american defense
01.01.15 04:56:39 am
like I like it!
Up
projr
GAME BANNED
Offline Off
Not bad
26.10.14 02:58:33 am
like I like it!
Up
Ryden
User
Offline Off
Nice Script but did other players can see the turret i customized ?
25.10.14 08:54:43 am
like I like it!
Up
hacked
User
Offline Off
How can I make it shoot bullets?
24.05.13 08:24:50 pm
like I like it!
Up
pbeloto
User
Offline Off
have yes permiction EDIT?
24.05.13 06:24:35 pm
like I like it!
Up
Crabby
User
Offline Off
Looks like Mortars
12.03.13 01:55:50 pm
like I like it!
Up
Zetax911
User
Offline Off
i just created a server but i dont know how to make those turrets because when i load menu of wrench it doesnt appear btw cool mod
15.02.13 06:49:30 pm
like I like it!
Up
limonata
User
Offline Off
Awesome
15.02.13 01:19:25 pm
like I like it!
Up
Infinite Rain
Reviewer
Offline Off
Awesome, I glad to hear that someone finished this :).
15.02.13 08:26:05 am
like I like it!
Up
TK Gunz FBI
User
Offline Off
I like and I can say a good word but just BANNANAS BEST TURRETS
13.02.13 11:07:04 pm
like I like it!
Up
J_Lucas
User
Offline Off
no words
13.02.13 09:11:53 pm
like I like it!
Up
Rainoth
Moderator
Offline Off
You, my bro, make world a better place. I can imagine the possibilities. Like once in 30 sec shoots a gas grenade within low range or Grenade launcher projectile + Walls. Think about the possibilities for Deathruns o.O AWESOME.
13.02.13 01:48:45 pm
like I like it!
Up
DryDay
User
Offline Off
This Script + Tower Defence map + bots Its Realy cool
12.02.13 02:50:05 pm
like I like it!
Up
Gajos
BANNED
Offline Off
PRO    
12.02.13 01:35:42 pm
like I like it!
Up
lucaSWAT
User
Offline Off
user mafia_man:
good job
12.02.13 12:47:35 pm
like I like it!
Up
RatedX
User
Offline Off
What happened to you rage quitting Unrealsoftware.de?
Instead you remove me from Skype.
12.02.13 11:57:14 am
like I like it!
Up
Occasus
User
Offline Off
Awesome script you got there, this is seriously must take a credit here.
12.02.13 11:54:43 am
Up
mafia_man
User
Offline Off
Yeah I don't care if you edit them, it took me few minutes to make them.
12.02.13 11:26:24 am
like I like it!
Up
CY
Reviewer
Offline Off
You've taken the crown! Awesome script and was it okay to edit the sprites you used for the script?
To the start Previous 1 2 Next To the start