Forum

> > Carnage Contest > Weapon scripting
ForenübersichtCarnage Contest-ÜbersichtEinloggen, um zu antworten

Englisch Weapon scripting

1 Antwort
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Weapon scripting

Su1c1d3
User Off Offline

Zitieren
Let's say I want to make a new weapon for Carnage Contest and i copy the Machine Gun.lua and change the name , the .bmp , the sound , the damage and the magazine size.So if i change the lines where "cc.mg.attack" appears and i change it to
"cc.rifle.attack" for example , is it going to work?

alt Re: Weapon scripting

DC
Admin Off Offline

Zitieren
yeah of course. but note that:

• you should also change the "cc". it's something like a namespace to avoid conflicts with weapons that have the same name. best is to use your nick or something like that instead of "cc" (so for example: suicide.rifle.attack)

• you will have to edit
1
2
3
if cc==nil then cc={} end
cc.mg={}
cc.mg.bullet={}
accordingly

• of course you will have to add your new weapon to the weaponset. otherwise you will not see it in-game
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenCarnage Contest-ÜbersichtForenübersicht