Posted by: ts2do
Date posted: Dec 08 2004 User Rating: 4.5 out of 5.0 | Number of views: 4439 Number of comments: 2 | Description: Get blue phys cannon with impulse 12 |
Posted by mr_unanimous
| | | Hi,
I thought people might like to play with the super physcannon (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 . | |
|
User Comments
Showing comments 1-2
|
Nice idea. It's nice to be able to play the game (cheating, of course) with this gun in the first place. |
|
|
Shouldn't GiveNamedItem have "super_phys_gun" as a parameter? |
|
You must register to post a comment. If you have already registered, you must login.
|