Coders: Question!
Fri, 2012-04-20 07:24
Hi!
I try to create a new mode/script. For that, i took the "highlander.lua" and learn how that works.
I'm not a coder, but interested in it. I hope it works...
I found this, and wanted to change the Medi-Packs:
Quote:
function onGameInit()
GameFlags = gfInfAttack + gfRandomOrder
HealthCaseProb = 100
I want weapon boxes to be included, so I changed the "100" (isn't that the percent-number?), but no Weaopon-Boxes appear!? No matter, if I change it to 5, 20 or 50. Only Medi-Packs!
Where do I have influence for that in the "highlander.lua"?
Is there a special command?
Thanks for help!
_
Maybe I found the answer myself...
Is it this?
try to set the HealthCaseProb to lesser than 100.
And modify SetAmmo for each weapon you want to have in the crates. You should read more about it here:
http://code.google.com/p/hedgewars/wiki/LuaAPI#SetAmmo_%28ammoType,_count,_probability,_delay,_numberInCrate%29
Vattenania, my beloved motherland, my beloved homeland! You are always with me in my thoughts and in my heart!