[MECH] UpgradeMe 1.1 
34 comments [Mechanics] UpgradeMe
not finished but stable: 1.2: https://dl.dropbox.com/u/53753604/vad/lua/UpgradeMe.lua - I'm pissed off just take it and have fun... If you find any bugs I will completely rewrite THAT SHIT. Thank you for using UpgradeMe.
(1.2): Huge performance improvements, caching.
I don't have a lot to say except that I hate dumb people who try to disturb you from upgrading something and hey, it makes upgrades like in Team Fortress 2!
What it does:
Whenever a building gets damaged it saves it's current upgrade progress. So you don't need to upgrade it again from 0%.
Just repair the building and continue upgrading from where you stopped!
Also, look at the pictures!
Installation 
Copy gfx folder into your CS2D directory
And drop the .lua into your autorun folder!
(e.g. D:\Counter-Strike 2D\sys\lua\autorun\)
Changelog 
1.1:
*
Turret I -> Turret II bug, thanks VaiN
(really, I don't think it's my own mistake if Lua compares and tells THAT 100 IS NOT EQUAL TO 100! >:[
([00:35:11] Current Progress isnt equal to 100! 100)
*
Unnecessary trash-objects were created for buildings without upgrades
*
The upgrade progress is more precise now
License
Yea, this script is licensed
This work is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
To keep it simple: you're allowed to distribute and edit the script, but you must say that I'm the initial author and you have to use/distribute it under the same license. Click at the link for more info.
Enjoy!
not finished but stable: 1.2: https://dl.dropbox.com/u/53753604/vad/lua/UpgradeMe.lua - I'm pissed off just take it and have fun... If you find any bugs I will completely rewrite THAT SHIT. Thank you for using UpgradeMe.
(1.2): Huge performance improvements, caching.
I don't have a lot to say except that I hate dumb people who try to disturb you from upgrading something and hey, it makes upgrades like in Team Fortress 2!



Whenever a building gets damaged it saves it's current upgrade progress. So you don't need to upgrade it again from 0%.
Just repair the building and continue upgrading from where you stopped!
Also, look at the pictures!


Copy gfx folder into your CS2D directory
And drop the .lua into your autorun folder!
(e.g. D:\Counter-Strike 2D\sys\lua\autorun\)


1.1:
*

(really, I don't think it's my own mistake if Lua compares and tells THAT 100 IS NOT EQUAL TO 100! >:[
([00:35:11] Current Progress isnt equal to 100! 100)
*

*



Yea, this script is licensed


Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
To keep it simple: you're allowed to distribute and edit the script, but you must say that I'm the initial author and you have to use/distribute it under the same license. Click at the link for more info.
Enjoy!

edited 12×, last 12.01.13 07:20:34 pm

Comments
34 commentsLog in!
You need to log in to be able to write comments!Log in
04.02.23 02:17:54 pm

Verii nice! now i dont need to go back HITTING my MOTHERF***ING SUPPLY again just because of a BASTARD PEOPLE who keeps HITTING MY SUPPLY AGAIN AND AGAIN...
Sorry for the rude comment but, I Like it
Mochi loves you
Sorry for the rude comment but, I Like it



Thank you, Vain. Since nobody really downloads anything / uses it, it's nearly impossible to test something.
I will reupload and include the image right now and a fix for turrets will be done a bit later after further testing.
UPD: The .png is included
I will reupload and include the image right now and a fix for turrets will be done a bit later after further testing.
UPD: The .png is included
26.11.12 08:19:21 am

I was considering using this on the REWARDS Construction server. But then I tested it..
It seems to work OK with all buildings except for turrets.
After upgrading turret to dual-turret the Total shows 99% still. When you use wrench once, it goes from 99% to 25%, and you only have to upgrade 75% to get tripple-turret.
Edit: Disabling the other buildings was simple enough, I only wanted it for the supplies anyway. But you should probably still fix it if possible.
Also this image was not included: onmap.data.image[id] = image("gfx//upgrademe.png", x+1, y+64, 2, id)
Edit Again: Scratch that, disabling other buildings just makes them blow up when upgraded. I won't be using this script until it's fixed.
It seems to work OK with all buildings except for turrets.
After upgrading turret to dual-turret the Total shows 99% still. When you use wrench once, it goes from 99% to 25%, and you only have to upgrade 75% to get tripple-turret.
Edit: Disabling the other buildings was simple enough, I only wanted it for the supplies anyway. But you should probably still fix it if possible.
Also this image was not included: onmap.data.image[id] = image("gfx//upgrademe.png", x+1, y+64, 2, id)
Edit Again: Scratch that, disabling other buildings just makes them blow up when upgraded. I won't be using this script until it's fixed.
edited 2×, last 27.11.12 04:10:19 pm

@
VADemon: nice perfect now the Bots will not stop me upgrading my supply u deserve a like.HERE U GO TAKE IT
