Forum

> > CS2D > Scripts > fast build
Forums overviewCS2D overview Scripts overviewLog in to reply

English fast build

2 replies
To the start Previous 1 Next To the start

old fast build

n0m3d1a
User Off Offline

Quote
hello! guys I have a question that someone could do the quick building luascripts --- C4 ---

old Re: fast build

Big Bang Mafia
User Off Offline

Quote
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
27
28
29
30
31
32
addhook("buildattempt","FUBuild")
addhook("objectupgrade","FUpgrade")

function FUBuild(p,t,x,y,i)
 if t==20 or t==21 then
  return 0 
 end
 parse('spawnobject '..t..' '..x..' '..y..' 0 0 '..player(p,"team")..' '..p)
 return 1
end

function FUpgrade(i,p,g,t)
 t=object(i,"type")

 if t==1 then t=3
 elseif t==3 then t=4
 elseif t==4 then t=5
 elseif t==8 then t=11
 elseif t==11 then t=12
 elseif t==9 then t=15 end
 
 n=player(p,"team")
 x=object(i,"tilex")
 y=object(i,"tiley")
 r=object(i,"rot")
 m=object(i,"mode")
 d=object(i,"player")
 
 parse("killobject "..i)
 parse("spawnobject "..t.." "..x.." "..y.." "..r.." "..m.." "..n.." "..p)
 return 1
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview