1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-10 15:17:57 -05:00

Add changes from sv_patch_zm_weapons and sv_fix_zm_weapons dvars to weapon files

War Machine: explode on impact from weapon file
This commit is contained in:
Jbleezy
2023-12-13 21:58:21 -08:00
parent c8b03d7763
commit 8ae21ccf41
34 changed files with 159 additions and 30 deletions

View File

@ -252,8 +252,6 @@ on_player_spawned()
self thread weapon_locker_give_ammo_after_rounds();
self thread war_machine_explode_on_impact();
self thread jetgun_heatval_changes();
self thread additionalprimaryweapon_indicator();
@ -437,8 +435,8 @@ set_dvars()
setDvar( "riotshield_projectile_damage_scale", 1 );
setDvar( "riotshield_deployed_health", 1500 );
setDvar( "sv_patch_zm_weapons", 0 );
setDvar( "sv_fix_zm_weapons", 1 );
setDvar( "sv_patch_zm_weapons", 1 );
setDvar( "sv_fix_zm_weapons", 0 );
setDvar( "sv_voice", 2 );
setDvar( "sv_voiceQuality", 9 );
@ -3312,32 +3310,6 @@ remove_buildable_pieces( buildable_name )
}
}
war_machine_explode_on_impact()
{
self endon("disconnect");
while(1)
{
self waittill("grenade_launcher_fire", grenade, weapname);
if(weapname == "m32_zm")
{
grenade thread grenade_explode_on_impact();
}
}
}
grenade_explode_on_impact()
{
self endon("death");
self waittill("grenade_bounce", pos);
self.origin = pos; // need this or position is slightly off
self resetmissiledetonationtime(0);
}
jetgun_heatval_changes()
{
self endon("disconnect");