Hi,
I would like to know how to have an ammo gain for weapons that aren't in player's hand ? (like Combo or SDpro) I looked at the Combo script, but I haven't found the function that allowed to do that.
Any idea ?
AmmoGain with multiple weapons
Moderator: English Moderator
Re: AmmoGain with multiple weapons
you can't set different AmmoGain's for each weapon
if you really want to modify the current ammo of a specific weapon you could use
(didn't test it though)
if you really want to modify the current ammo of a specific weapon you could use
Code: Select all
Void SetPlayerAmmo (CSmPlayer Player, EWeapon Weapon, Integer Count);
Void AddPlayerAmmo (CSmPlayer Player, EWeapon Weapon, Real DeltaCount);
Re: AmmoGain with multiple weapons
Ok, thanks.
I will try to make a function based on the last switch Time and the AmmoGain I want for the weapon to add an amount of ammo when the player will switch weapon. But i need to know the AmmoGain Multiplier for each Weapon (or the time to reload 1 ammo with AmmoGain = 1).
Someone know when I can find these values ?
I will try to make a function based on the last switch Time and the AmmoGain I want for the weapon to add an amount of ammo when the player will switch weapon. But i need to know the AmmoGain Multiplier for each Weapon (or the time to reload 1 ammo with AmmoGain = 1).
Someone know when I can find these values ?
Re: AmmoGain with multiple weapons
easiest way to get these values is calculating the time between 2 shots
(spam out all your ammunition and keep holding "shoot", then measure the delay between the shots)
(spam out all your ammunition and keep holding "shoot", then measure the delay between the shots)
Who is online
Users browsing this forum: No registered users and 1 guest