X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fweapon%2Frifle.qh;h=3fbe1a28700b6006b9fa528bb84a34e168895e17;hb=da2c4ce524f19480061740bafcfc0fceeb7ff040;hp=87bc4d7ec1d856424cde3776886176591166ef57;hpb=02656a36f5e7fe11380396bfa78c0d0049e19891;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/weapons/weapon/rifle.qh b/qcsrc/common/weapons/weapon/rifle.qh index 87bc4d7ec..3fbe1a287 100644 --- a/qcsrc/common/weapons/weapon/rifle.qh +++ b/qcsrc/common/weapons/weapon/rifle.qh @@ -2,9 +2,9 @@ CLASS(Rifle, Weapon) /* spawnfunc */ ATTRIB(Rifle, m_canonical_spawnfunc, string, "weapon_rifle"); -/* ammotype */ ATTRIB(Rifle, ammo_type, int, RESOURCE_BULLETS); +/* ammotype */ ATTRIB(Rifle, ammo_type, int, RES_BULLETS); /* impulse */ ATTRIB(Rifle, impulse, int, 7); -/* flags */ ATTRIB(Rifle, spawnflags, int, WEP_FLAG_MUTATORBLOCKED | WEP_FLAG_RELOADABLE | WEP_TYPE_HITSCAN | WEP_FLAG_PENETRATEWALLS | WEP_FLAG_NODUAL); +/* flags */ ATTRIB(Rifle, spawnflags, int, WEP_FLAG_MUTATORBLOCKED | WEP_FLAG_RELOADABLE | WEP_TYPE_HITSCAN | WEP_FLAG_PENETRATEWALLS); /* rating */ ATTRIB(Rifle, bot_pickupbasevalue, float, 7000); /* color */ ATTRIB(Rifle, wpcolor, vector, '0.5 1 0'); /* modelname */ ATTRIB(Rifle, mdl, string, "campingrifle"); @@ -27,6 +27,7 @@ CLASS(Rifle, Weapon) P(class, prefix, bursttime, float, NONE) \ P(class, prefix, damage, float, BOTH) \ P(class, prefix, force, float, BOTH) \ + P(class, prefix, headshot_multiplier, float, BOTH) \ P(class, prefix, refire, float, BOTH) \ P(class, prefix, reload, float, SEC) \ P(class, prefix, reload_ammo, float, NONE) \