Fixing the Dropship gun: Difference between revisions
Jump to navigation
Jump to search

Tip:If you're developing a Source 2013 mod, you could opt to use a community repo, that has bugs like these fixed by default.
mNo edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
== Introduction == | == Introduction == | ||
This article explains the process of fixing {{ent|npc_combinedropship}} gun rotation being broken in Source. | This article explains the process of fixing {{ent|npc_combinedropship}} gun rotation being broken in Source (after {{src07|1}}/Orange Box). | ||
== Fixing the Gun's Rotation == | == Fixing the Gun's Rotation == |
Revision as of 07:57, 17 August 2024


Introduction
This article explains the process of fixing npc_combinedropship gun rotation being broken in Source (after Source 2007/Orange Box).
Fixing the Gun's Rotation
Copy the contents of this page, (courtesy of GRAI+) and use it to replace src/game/server/hl2/npc_combinedropship.cpp
— You're done!
Alternatively, if you wish to edit the code, the main change it does is add these two lines at the top of CNPC_CombineDropship::UpdateContainerGunFacing, immediately following the assertion statement:
m_poseWeapon_Pitch = m_hContainer->LookupPoseParameter("weapon_pitch");
m_poseWeapon_Yaw = m_hContainer->LookupPoseParameter("weapon_yaw");
