English Custom Turret Lua icon

22 comments
04.02.14 08:26:23 pm
like 10 like it!
10 kb, 478 Downloads
Rainoth
Moderator
Offline Off
Well. Long story short. Normal turrets all have same type of ammo and I couldn't find a solution or a workaround to differentiate them. So I dropped my idea and decided to make something else.

A custom turret. Really, I tried to make it look as close to a normal turret as possible. I couldn't make smooth rotation when it's idle though. Sorry about that...

Anyways. I'm sure this can be used with construction mod but really I'm uploading this just for the sake of anyone needing this. The code isn't all that great. It's me after all... Still, it does the job and I couldn't care less about it.

Screenshots might not be so descriptive so I made a quick video (Ye I was THAT bored...)

> Click this "Click This"

Some things I'd like to mention.
In the video, I can destroy my turret. It's not possible. It was possible merely to show the possibility of turret being destroyed. You or your teammates can't do it.
Thanks to
user Pseudon for the sprites,
user Yates for helping with hitzone,
user EngiN33R for telling me about math.atan2 function as well as pointing out dumb mistakes.

Installation >
Download > Put in Counter-Strike 2D Folder > Extract > Play

Enjoy ~~
imageimageimage
ok This file has been reviewed and approved by Yates (04.12.15 10:13:51 am)

Comments

22 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
09.05.14 02:59:26 pm
like I like it!
Up
AlcatrazZ
BANNED
Offline Off
NICE!
07.02.14 11:37:31 pm
like I like it!
Up
Coolhand
User
Offline Off
How to reload or upgrade?

BEST SCRIPT OF TURRETS! *1000/5*
05.02.14 10:19:39 pm
Up
Rainoth
Moderator
Offline Off
I'd probably agree but.

My script may not be as great as yours but our scripts are different. Really different actually. Your has all those variables and what not, but the concept is entirely different. I control mine remotely and I can get inside of it, whereas your turrets (I believe) are acting on their own. Even if they aren't, your script does not offer such a thing like entering a turret. If you really want to have me remove this, please upgrade your own script to match the abilities of mine and then I'll kindly keep my code to myself. I wasn't even sure whether to upload it cause I thought to have it privately, but then I decided not to, I'm sure at least few people will find this useful.

If a moderator or DC disagrees with what I said and believes that the scripts are the same, they can delete this and I will not argue about it.
05.02.14 09:20:14 pm
Up
mafia_man
User
Offline Off
Then keep your code for yourself and read this:

thread us CS2D File Archive Restrictions
user DC has written:
All other CS2D scripts: Please make sure that they are really new or at least better than existing scripts! Otherwise they might get removed as well.
05.02.14 09:06:27 pm
Up
Rainoth
Moderator
Offline Off
@user mafia_man: Ye it's cool. But I hate to use other's code. Well done though.
05.02.14 07:00:19 pm
Up
mafia_man
User
Offline Off
05.02.14 05:54:17 pm
Up
Rainoth
Moderator
Offline Off
@user Avo: I'll consider that.
This was made to be implemented as an upgrade in a mod I'm making. A little bit more and I'll have done both mods that I'm currently making. Maybe then.
05.02.14 05:24:39 pm
like I like it!
Up
BATTLEKOT
User
Offline Off
cool. add more new turrel)
05.02.14 04:40:34 pm
Up
Rainoth
Moderator
Offline Off
@user KimKart:,user massiveguy Ye I love it too. It's from Vsauce :3
05.02.14 04:11:57 pm
like I like it!
Up
massiveguy
User
Offline Off
music sucks.
05.02.14 04:05:25 pm
like I like it!
Up
KimKart
Idiot
Offline Off
Shit music.
0.8/7 would bang
05.02.14 02:14:21 pm
like I like it!
Up
Conscience
User
Offline Off
@user Pseudon: That would lag, constantly. Testing it on new game will make it seem that it won't lag on an actual server, this is due to it requesting your data, and you are the server. If not then it will have to request client data (which can be manipulated) and then send it back to the server.

Awesome script, though! Keep it up!
05.02.14 01:43:50 pm
Up
Rainoth
Moderator
Offline Off
@user Pseudon: That's a great idea. I MIGHT make that. You see I would have to constantly request/receive my cursor position. I'm not exactly sure but it's possible that it would lag.

@user tek69: I'm afraid that would make me look inappropriate. You can always google the image and replace it to your liking (in your case, you like ****s so I guess you'll have to search for those...)

@Ohaz thanks.
05.02.14 09:57:59 am
like I like it!
Up
Pseudon
User
Offline Off
Awesome,still if you would make it rotate following the owner's cursor this script would be perfect. 4.5/5
05.02.14 08:24:51 am
like I like it!
Up
ohaz
User
Offline Off
Awesome!
05.02.14 03:24:28 am
Up
tek69
User
Offline Off
make a penis turrent ok?custom
05.02.14 12:23:36 am
Up
Rainoth
Moderator
Offline Off
@user Pagyra: Player enters the inside of turret so it should be drawn over him
For the imagehitzone thanks. Was my first time using imagehitzone so I was unsure how I could do everything.
04.02.14 11:58:01 pm
Up
Pagyra
User
Offline Off
imagehitzone 102 mode - wall effect + stop shot

For hull image - Mode 0: floor image (covered by players etc)
For turret image - Mode 201-232: draw over this player (id+200)

My variantion of skins for different weapon(rocket,rpg,grenadelauncher,laser)
edited 1×, last 05.02.14 09:25:50 am
04.02.14 10:29:30 pm
Up
Infinite Rain
Reviewer
Offline Off
Awesome idea.
I can help you with making the turret more realistic.
I've done it multiple times before, see my Laser Turret script.
04.02.14 09:12:42 pm
like I like it!
Up
Marcell
Super User
Offline Off
Its will be useful on my server, thx man!
To the start Previous 1 2 Next To the start