ValveTime.co.uk | Valve News, Forums, Steam

Hi,

I thought people might like to play with the super physcannon in their mod (without running the map: citadel and then changing to your map, etc).
I added some code to activate the super physcannon by impulse command :).

File: HL2_Player.cpp
Add this to the function: void CHL2_Player::CheatImpulseCommands( int iImpulse )
(inside the switch statement ;))
Code:
case 12: 
  { 
  	EquipSuit(); 
 
  	if ( !GlobalEntity_IsInTable( "super_phys_gun" ) ) 
  	{ 
    GlobalEntity_Add( MAKE_STRING("super_phys_gun"), gpGlobals->mapname, GLOBAL_ON); 
  	} 
  	else 
  	{ 
    GlobalEntity_SetState( MAKE_STRING("super_phys_gun"), GLOBAL_ON); 
  	} 
 
  	GiveNamedItem("weapon_physcannon"); 
 
  	break; 
  }

Now start up a game and type: impulse 12 (in console).
Just make sure sv_cheats is 1 ;).

Enjoy :).
Back
Top