]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mutators/mutator/overkill/okshotgun.qc
Add damage and force falloff to shotgun, machinegun, rifle, vaporizer, okmachinegun...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / overkill / okshotgun.qc
index cd1d618a8c9816adf00e3eda54096c96f285880b..7fae9ad30b1c7e11fdb9a77e198e88c23a73897c 100644 (file)
@@ -50,10 +50,14 @@ METHOD(OverkillShotgun, wr_think, void(entity thiswep, entity actor, .entity wea
                W_Shotgun_Attack(thiswep, actor, weaponentity, true,
                        WEP_CVAR_PRI(okshotgun, ammo),
                        WEP_CVAR_PRI(okshotgun, damage),
+                       WEP_CVAR_PRI(okshotgun, damagefalloff_halflife),
+                       WEP_CVAR_PRI(okshotgun, damagefalloff_mindist),
+                       WEP_CVAR_PRI(okshotgun, damagefalloff_maxdist),
                        WEP_CVAR_PRI(okshotgun, bullets),
                        WEP_CVAR_PRI(okshotgun, spread),
                        WEP_CVAR_PRI(okshotgun, solidpenetration),
                        WEP_CVAR_PRI(okshotgun, force),
+                       WEP_CVAR_PRI(okshotgun, damagefalloff_forcehalflife),
                        EFFECT_RIFLE_WEAK);
                weapon_thinkf(actor, weaponentity, WFRAME_FIRE1, WEP_CVAR_PRI(okshotgun, animtime), w_ready);
                return;