Page 1 of 1
mode: more ammo
Posted: 19 Feb 2014, 02:51
by zombare
can somebody help me, how to add more ammos into mode?
in normal there are often 4 ammos until load. how to increase this amount?
Re: mode: more ammo
Posted: 19 Feb 2014, 14:19
by Eole
When spawning a player you can use the SetPlayerAmmoMax() function to set the number of ammo for each weapon:
Code: Select all
SetPlayerAmmoMax(CSmPlayer Player, EWeapon Weapon, Integer Count)
Re: mode: more ammo
Posted: 20 Feb 2014, 03:26
by zombare
thank you!
im very bad at editing modes is it like this to add 2 more ammos to rocket?
Code: Select all
SetPlayerAmmoMax(CSmPlayer Player, EWeapon Rocket, Integer 6)
Re: mode: more ammo
Posted: 20 Feb 2014, 12:47
by faserg1
zombare wrote:thank you!
im very bad at editing modes is it like this to add 2 more ammos to rocket?
Code: Select all
SetPlayerAmmoMax(CSmPlayer Player, EWeapon Rocket, Integer 6)
Please, read the
ManiaScript Syntax documentation

As I know, that must be smth like this:
Code: Select all
SetPlayerAmmoMax(Player, EWeapon::Rocket, 6);
Also, there is an all system things (functions, classes, etc):
http://maniascript.tmrankings.com/html/index.html
Re: mode: more ammo
Posted: 20 Feb 2014, 14:14
by Eole
The exact lines to paste before the player spawn are:
Code: Select all
// Set 6 ammo max to all weapons
SetPlayerAmmoMax(Player, CSmMode::EWeapon::Rocket, 6);
SetPlayerAmmoMax(Player, CSmMode::EWeapon::Laser, 6);
SetPlayerAmmoMax(Player, CSmMode::EWeapon::Nucleus, 6);
SetPlayerAmmoMax(Player, CSmMode::EWeapon::Arrow, 6);
Re: mode: more ammo
Posted: 21 Feb 2014, 13:43
by zombare
thank you very much!