Med/Ammo pack distance


(dvldrmmr) #1

In shrub, you can increase the distance the med/ammo packs fly. So I thought I’d give it a shot…

in function Weapon_Medic (g_weapon.c) add

int velocity_scale = 75;  // 75 is default value

at the beginning of the function with the other local variable declarations.
Then find this line:

VectorScale( velocity, 75, velocity );

and replace it with this:

// dvl - increase pack distance
if( dg_packDistance.integer > 1 )  
    velocity_scale = 75 * dg_packDistance.integer;
VectorScale( velocity, velocity_scale, velocity );

Thats it! To do it with the ammo packs, do the same in the Weapon_MagicAmmo function.

dvl