[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 1014: Undefined array key 3 [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 1014: Undefined array key 3 [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 1014: Undefined array key 3 [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 1014: Undefined array key 3 [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4130: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3009) [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4130: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3009) [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4130: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3009) [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4130: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3009) blink - Battlezone Forums
I want to make a version of blink that uses Local Ammo but can't figer out what flags I need to get it to work.
if any one has tryed this before a quick how to or it can't be done would be nice.
[WeaponClass]
classLabel = "blink"
ordName = NULL
wpnName = "Blink"
fireSound = "blink01.wav"
wpnReticle = "gblink.0"
wpnCategory = "SPEC"
wpnPriority = 3 // Added by Red Devil from PB2 team.
aiRange = 50 // Added by Red Devil from PB2 team.
isAssault = 0
localAmmo = 1 // Added by Red Devil from PB2 team
//addLocalAmmo = 0.005 // Added and changed to 0.005 by Red Devil from PB4 team.
addLocalAmmo = 0.008 // Added and changed to 0.005 by Red Devil from PB4 team.
// This setting recharges local ammo about 2 units of local ammo per second recharge rate == 1 meter per second recharge rate
// depending upon the following settings.
[BlinkDeviceClass]
ammoBase = 0.001 // was 300, was 200 in stock. Changed to 0.001 by Red Devil from PB2 team. This setting determines the amount
// of local ammo in the local ammo bar. 0.001 == 1000 units.
ammoDist = 0.002 // was 20, was 1.0 in stock. Changed to 0.002 by Red Devil from PB2 team. This setting determines the amount
// of local ammo used for one meter of jump. 0.002 == 2 units of local ammo per meter of jump.
//shotDelay = 5.0 // Delay after firing before it can trigger again, in seconds.
shotDelay = 4.0 // Delay after firing before it can trigger again, in seconds.
Well, for one thing, unless your jumping exactly 0 meters, then you won't have enough ammo to pull off the blink using your settings, because of the ammoDist cost (ammoDist is the extra cost of ammo per meter of travel distance). Lower ammoDist to exactly 0 if you want it to work -- or play around with the ammo settings until the blink doesnt cost more ammo than you have.
If you want it so that it can long jump but can't blink within 100m of its current location, you could try something like this
Zero Angel wrote:Well, for one thing, unless your jumping exactly 0 meters, then you won't have enough ammo to pull off the blink using your settings, because of the ammoDist cost (ammoDist is the extra cost of ammo per meter of travel distance). Lower ammoDist to exactly 0 if you want it to work -- or play around with the ammo settings until the blink doesnt cost more ammo than you have.
If you want it so that it can long jump but can't blink within 100m of its current location, you could try something like this
you can make a combination of small, medium and large jumps until your local ammo goes to zero. you need to wait while the local ammo slowly recharges once it gets to zero.