set g_healthsize_soundfactor 0.5 "The sounds players make are amplified or reduced by this amount based on their size"\r
set g_healthsize_exteriorweapon_scalefactor 1 "Amount by which player size resizes the exterior weapon model"\r
set g_healthsize_weapon_scalefactor 1 "Amount by which player size resizes the view weapon model"\r
-set g_healthsize_weapon_scalefactor_pos 10 "Amount by which the view model is moved vertically based on player size"\r
+set g_healthsize_weapon_scalefactor_pos 4 "Amount by which the view model is moved vertically based on player size"\r
\r
set g_power 5 "when armor is below this level, the HUD, crosshair and helper will not work"\r
set g_power_reboot 2 "amount of time it takes to boot a player's subsystems once he has enough armor"\r
if(cvar("g_healthsize") && cvar("g_healthsize_weapon_scalefactor"))\r
if(self.model != "")\r
{\r
- self.weaponentity.scale = (1 + cvar("g_healthsize_weapon_scalefactor")) - cvar("g_healthsize_weapon_scalefactor") * self.owner.scale;\r
- if(self.weaponentity.scale < 0.1)\r
- self.weaponentity.scale = 0.1; // stuff breaks if scale is smaller than this\r
- self.weaponentity.origin_z = (1 - self.weaponentity.scale) * cvar("g_healthsize_weapon_scalefactor_pos");\r
+ self.scale = (1 + cvar("g_healthsize_weapon_scalefactor")) - cvar("g_healthsize_weapon_scalefactor") * self.owner.scale;\r
+ if(self.scale < 0.1)\r
+ self.scale = 0.1; // stuff breaks if scale is smaller than this\r
+ self.origin_z = (1 - self.scale) * cvar("g_healthsize_weapon_scalefactor_pos");\r
+\r
+ // copy properties to the static weapon entity as well\r
+ self.weaponentity.scale = self.scale;\r
+ self.weaponentity.origin = self.origin;\r
}\r
};\r
\r
setattachment(self, self.owner.weaponentity, "weapon");\r
else if(gettagindex(self.owner.weaponentity, "tag_weapon"))\r
setattachment(self, self.owner.weaponentity, "tag_weapon");\r
- gun = self.owner.weaponentity.weaponentity;\r
+ gun = self.owner.weaponentity;\r
}\r
\r
// copy all properties of the weapon to the digit\r
\r
- 0.7 BUG: Default player model is broken?\r
\r
-- 0.7 BUG: Display digits on th 1st persom model disappear when the next map starts.\r
-\r
- 0.7 BUG: With the latest engine, the view is no longer locked after match end, and you can still look around. See what changed in Xonotic and how to fix this.\r
\r
- 0.7 BUG: Consumable health seems to give more than the health it should.\r