minimal_fuss
Landlubber
ok i was trying to manually add vipers cheats to the game:
THIS IS THE RELIVANT PART OF MY ORIGINAL INIT_PC.C (B4 CHEATS)
<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->void ExternControlsInit(bool bFirst)
{
if(bFirst)
{
ExternInitKeyCodes();
CI_CreateAndSetControls( "", "ICancel", CI_GetKeyCode("VK_ESCAPE"), 0, false );
CI_CreateAndSetControls( "", "IAction", CI_GetKeyCode("VK_SPACE"), 0, false );
return;
}
ExternInitKeyCodes();
//CI_CreateAndSetControls( "", "Dump", CI_GetKeyCode("KEY_0"), 0, false );
CI_CreateAndSetControls( "", "TimeScale", CI_GetKeyCode("VK_MULTIPLY"), 0, false );
// Cameras =====================================================================
/* // character camera
CI_CreateAndSetControls( "", "ChrCamTurnV", 257, INVERSE_C
(ETC....)<!--QuoteEnd--></div><!--QuoteEEnd-->
THIS IS THE MODIFIED VERSION:
<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->void ExternControlsInit(bool bFirst)
{
if(bFirst)
{
ExternInitKeyCodes();
CI_CreateAndSetControls( "", "ICancel", CI_GetKeyCode("VK_ESCAPE"), 0, false );
CI_CreateAndSetControls( "", "IAction", CI_GetKeyCode("VK_SPACE"), 0, false );
return;
}
ExternInitKeyCodes();
//CI_CreateAndSetControls( "", "Dump", CI_GetKeyCode("KEY_0"), 0, false );
// Spitfire Enable Cheats -->
CI_CreateAndSetControls( "", "CheatGod", CI_GetKeyCode("KEY_Y"), 0, false );
CI_CreateAndSetControls( "", "CheatShotGun", CI_GetKeyCode("KEY_U"), 0, false );
CI_CreateAndSetControls( "", "CheatGold", CI_GetKeyCode("KEY_H"), 0, false );
CI_CreateAndSetControls( "", "CheatSkill", CI_GetKeyCode("KEY_O"), 0, false );
CI_CreateAndSetControls( "", "CheatReputation", CI_GetKeyCode("KEY_J"), 0, false );
// Spitfire <--
CI_CreateAndSetControls( "", "TimeScale", CI_GetKeyCode("VK_MULTIPLY"), 0, false );
// Cameras =====================================================================
/* // character camera
CI_CreateAndSetControls( "", "ChrCamTurnV", 257, INV<!--QuoteEnd--></div><!--QuoteEEnd-->
Using this modded version the cheats work 100% fine.....however my sialing controls go a lil nuts, and no long do my select keys work...so i cant actually do much and the game becomes unplayable.
What mistake have i made?
THIS IS THE RELIVANT PART OF MY ORIGINAL INIT_PC.C (B4 CHEATS)
<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->void ExternControlsInit(bool bFirst)
{
if(bFirst)
{
ExternInitKeyCodes();
CI_CreateAndSetControls( "", "ICancel", CI_GetKeyCode("VK_ESCAPE"), 0, false );
CI_CreateAndSetControls( "", "IAction", CI_GetKeyCode("VK_SPACE"), 0, false );
return;
}
ExternInitKeyCodes();
//CI_CreateAndSetControls( "", "Dump", CI_GetKeyCode("KEY_0"), 0, false );
CI_CreateAndSetControls( "", "TimeScale", CI_GetKeyCode("VK_MULTIPLY"), 0, false );
// Cameras =====================================================================
/* // character camera
CI_CreateAndSetControls( "", "ChrCamTurnV", 257, INVERSE_C
(ETC....)<!--QuoteEnd--></div><!--QuoteEEnd-->
THIS IS THE MODIFIED VERSION:
<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->void ExternControlsInit(bool bFirst)
{
if(bFirst)
{
ExternInitKeyCodes();
CI_CreateAndSetControls( "", "ICancel", CI_GetKeyCode("VK_ESCAPE"), 0, false );
CI_CreateAndSetControls( "", "IAction", CI_GetKeyCode("VK_SPACE"), 0, false );
return;
}
ExternInitKeyCodes();
//CI_CreateAndSetControls( "", "Dump", CI_GetKeyCode("KEY_0"), 0, false );
// Spitfire Enable Cheats -->
CI_CreateAndSetControls( "", "CheatGod", CI_GetKeyCode("KEY_Y"), 0, false );
CI_CreateAndSetControls( "", "CheatShotGun", CI_GetKeyCode("KEY_U"), 0, false );
CI_CreateAndSetControls( "", "CheatGold", CI_GetKeyCode("KEY_H"), 0, false );
CI_CreateAndSetControls( "", "CheatSkill", CI_GetKeyCode("KEY_O"), 0, false );
CI_CreateAndSetControls( "", "CheatReputation", CI_GetKeyCode("KEY_J"), 0, false );
// Spitfire <--
CI_CreateAndSetControls( "", "TimeScale", CI_GetKeyCode("VK_MULTIPLY"), 0, false );
// Cameras =====================================================================
/* // character camera
CI_CreateAndSetControls( "", "ChrCamTurnV", 257, INV<!--QuoteEnd--></div><!--QuoteEEnd-->
Using this modded version the cheats work 100% fine.....however my sialing controls go a lil nuts, and no long do my select keys work...so i cant actually do much and the game becomes unplayable.
What mistake have i made?