Forum

> > CS2D > General > Can someone upload an "infinite build" lua script?
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Can someone upload an "infinite build" lua script?

11 replies
To the start Previous 1 Next To the start

old Can someone upload an "infinite build" lua script?

ViciousGamer04
User Off Offline

Quote
I've already got a fast build, I wanted an infinite build script, too. Or well, one that I can set a limit on would be nice. Thanks to anyone who can upload one or link me to one as i'm having a hard time finding one, thanks.

Wanted one for my server so the sooner the better
edited 1×, last 07.11.09 10:29:12 am

old Re: Can someone upload an "infinite build" lua script?

Crazyx
User Off Offline

Quote
If you want all buildings infinite via Lua, try this:

1
2
3
4
5
6
7
parse ("mp_building_limit "Dispenser 99999")
parse ("mp_building_limit "Turret" 99999)
parse ("mp_building_limit "Supply" 99999)
parse ("mp_building_limit "Gate Field" 99999)
parse ("mp_building_limit "Teleporter Entrance" 99999)
parse ("mp_building_limit "Teleporter Exit" 99999)
end

old Re: Can someone upload an "infinite build" lua script?

Redefinder
User Off Offline

Quote
xeNium has written
If you want all buildings infinite via Lua, try this:

Code:
parse ("mp_building_limit "Dispenser 99999")
parse ("mp_building_limit "Turret" 99999)
parse ("mp_building_limit "Supply" 99999)
parse ("mp_building_limit "Gate Field" 99999)
parse ("mp_building_limit "Teleporter Entrance" 99999)
parse ("mp_building_limit "Teleporter Exit" 99999)
end

umm no I think that won`t work because for buildings with two words you need to use something like this:
1
parse ("mp_building_limit '/Gate Field'/ 99999)

old Re: Can someone upload an "infinite build" lua script?

HiddenSuprise
User Off Offline

Quote
Ok That This Script...

addhook("build","no_site")
function no_site(id,type)
if (type == 21) then
return 0
else
return 1
end
end

buildingmoney = {0,0,0,0,0,0,0,0}

addhook("build","no_sitenow")
function no_sitenow(id,type,x,y)
parse("spawnobject "..type.." "..x.." "..y.." 90 1 "..player(id,"team").." "..id)
end

addhook("build","money_loose")
function money_loose(id,type)
if (type == 1) then
parse("setmoney "..id.." "..player(id,"money")-buildingmoney[1])
elseif (type == 2) then
parse("setmoney "..id.." "..player(id,"money")-buildingmoney[2])
elseif (type == 3) then
parse("setmoney "..id.." "..player(id,"money")-buildingmoney[3])
elseif (type == 4) then
parse("setmoney "..id.." "..player(id,"money")-buildingmoney[4])
elseif (type == 5) then
parse("setmoney "..id.." "..player(id,"money")-buildingmoney[5])
elseif (type == 6) then
parse("setmoney "..id.." "..player(id,"money")-buildingmoney[6])
elseif (type == 7) then
parse("setmoney "..id.." "..player(id,"money")-buildingmoney[7])
elseif (type == then
parse("setmoney "..id.." "..player(id,"money")-buildingmoney[7])
elseif (type == 9) then
parse("setmoney "..id.." "..player(id,"money")-buildingmoney[7])
elseif (type == 13) then
parse("setmoney "..id.." "..player(id,"money")-buildingmoney[8])
elseif (type == 14) then
parse("setmoney "..id.." "..player(id,"money")-buildingmoney[8])
end
end

old Re: Can someone upload an "infinite build" lua script?

ViciousGamer04
User Off Offline

Quote
Vibhor has written
has been uploaded already


I saw it before but at the time the downloads weren't able to be accessed. I check now and don't see it.

Heavy has written
I wrote a script for that:
http://unrealsoftware.de/files_show.php?file=53
It's also easy to enable and disable infinitebuilding and fastbuilding


It doesn't seem to work properly. On CT or T team it seems to only make Turrets n' such for Terrorists despite the team you're on, and I also don't seem to have unlimited buildings.

The fast build worked, though.

old Re: Can someone upload an "infinite build" lua script?

CmDark
User Off Offline

Quote
Spoiler >

AND
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Maxbuild.script
mp_building_limit dispenser 999999
mp_building_limit supply 999999
mp_building_limit turret 999999
mp_building_limit "Gate Field" 999999
mp_building_limit "Wall III" 999999
mp_building_limit "Wall II" 999999
mp_building_limit "Wall I" 999999
mp_building_limit "Barricade" 999999
mp_building_limit "Barbed Wire" 999999
mp_building_price "Barricade" 0
mp_building_price "Barbed Wire" 0
mp_building_price "Wall I" 0
mp_building_price "Wall II" 0
mp_building_price "Wall III" 0
mp_building_price "Gate Field" 0
mp_building_price "Turret" 0
mp_building_price "Dispenser" 0
mp_building_price "Supply" 0
mp_building_limit "Teleporter Entrance" 999999
mp_building_limit "Teleporter Exit" 999999
mp_building_price "Teleporter Entrance" 0
mp_building_price "Teleporter Exit" 0
mp_building_limit "Laser Mine" 999999
mp_killbuildings 3
msg Buildings have been set to max

old Re: Can someone upload an "infinite build" lua script?

sonnenschein
User Off Offline

Quote
ViciousGamer04 has written
Heavy has written
I wrote a script for that:
http://unrealsoftware.de/files_show.php?file=53
It's also easy to enable and disable infinitebuilding and fastbuilding


It doesn't seem to work properly. On CT or T team it seems to only make Turrets n' such for Terrorists despite the team you're on, and I also don't seem to have unlimited buildings.

The fast build worked, though.

of course it doesn't work properly. as you can see, all fast builds have money trigger. if a certain money value is lower, it wont build.
i think fast build scripts should be edited to print a message: "You don't have enough money to build!"

old Re: Can someone upload an "infinite build" lua script?

ViciousGamer04
User Off Offline

Quote
LinuxGuy has written
ViciousGamer04 has written
Heavy has written
I wrote a script for that:
http://unrealsoftware.de/files_show.php?file=53
It's also easy to enable and disable infinitebuilding and fastbuilding


It doesn't seem to work properly. On CT or T team it seems to only make Turrets n' such for Terrorists despite the team you're on, and I also don't seem to have unlimited buildings.

The fast build worked, though.

of course it doesn't work properly. as you can see, all fast builds have money trigger. if a certain money value is lower, it wont build.
i think fast build scripts should be edited to print a message: "You don't have enough money to build!"


Wasn't that I didn't have enough money, I built a dispenser to give 16,000 each time. However, it just kept going all haywire with Heavy's script. Someone else provided a script in this thread forgot who but thank you as the infinite build worked. I found another fast build script in the upload section & with the two running together I finally got it to work.

Edit:....and now it's not working, for no apparent reason. It worked perfectly earlier and I didn't make any changes and now it simply won't work.
edited 1×, last 08.11.09 04:32:38 am
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview