Talk:Dual Pistols (CSS Style)
The code here could be alot more efficient, I.E, RightDualiesAttack could be put directly into weapon_dualies, and all the code in PostFireStuff could be consolidated onto ItemPostFrame, seeing as thats what ItemPostFrame is for. And I could even go as far to say remove the RightDualiesAttack function and just put in a bool that toggles that into PrimaryFire.
--DeadlyContagion 16:30, 26 Oct 2007 (PDT)
Then edit the code? Just check that it works before you confirm the edit. --Lord Ned
As far as I know, fixing the whitespace after the find and replace operation is unnecessary. C++ ignores almost all whitespace. --Hamish
I've followed this tutorial up until the creation of the script file. I've yet to proceed to that stage yet because I keep getting build errors when testing all the changes made. There are a total of seven unique errors, all to do with "undeclared identifiers". I'll show an example below (I hope that's alright?).
c:\testmod\src\game\shared\hl2mp\weapon_dualies.cpp(133) : error C2065: 'ACT_HL2MP_IDLE_Dualies' : undeclared identifier
To save space I've only shown one actual error here, but the others are exactly the same except for "ACT_HL2MP_IDLE_Dualies" being replaced by "ACT_HL2MP_IDLE_CROUCH_Dualies", "ACT_HL2MP_RUN_Dualies", "ACT_HL2MP_WALK_CROUCH_Dualies", "ACT_HL2MP_GESTURE_RANGE_ATTACK_Dualies", "ACT_HL2MP_GESTURE_RELOAD_Dualies", and "ACT_HL2MP_JUMP_Dualies".
Obviously they can be all traced back to a single issue, yet I haven't the coding experience to figure out the solution for myself. Any help here would be greatly appreciated. --Vic kothe 19:26, 18 May 2010 (UTC)