Welcome, Guest! Login | Register

Super Phys Cannon Impulse [Print this Article]
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
 QUOTE  
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:
 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 .

Rate This Article
This article is currently rated: 4.5 out of 5.0 (2 Votes)

You have to register to rate this article.
User Comments Showing comments 1-2

Posted By: ledjon on Dec 14 2004 at 10:19:17
Nice idea. It's nice to be able to play the game (cheating, of course) with this gun in the first place.

Posted By: Resforjen on Jan 29 2005 at 12:02:16
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.

Latest Articles
3rd person View in Multiplayer
Half-Life 2 | Coding | Client Side Tutorials
How to enable it in HL2DM

By: cct | Nov 13 2006

Making a Camera
Half-Life 2 | Level Design
This camera is good for when you join a map, it gives you a view of the map before you join a team

By: slackiller | Mar 04 2006

Making a camera , Part 2
Half-Life 2 | Level Design
these cameras are working monitors that turn on when a button is pushed.

By: slackiller | Mar 04 2006

Storing weapons on ladder
Half-Life 2 | Coding | Snippets
like Raven Sheild or BF2

By: British_Bomber | Dec 24 2005

Implementation of a string lookup table
Half-Life 2 | Coding | Snippets
A string lookup table is a set of functions that is used to convert strings to pre-defined values

By: deathz0rz | Nov 13 2005


Latest Comments
Where do we go from here
General | News
By: MIFUNE | Jun 09 2008
 
The Input/Output system
Half-Life 2 | Level Design
By: nazitaco | Dec 23 2007
 
Where do we go from here
General | News
By: Rob_F | Nov 22 2007
 
Rescaling Half-Life
Half-Life | Coding | Shared Tutorials
By: christoph | Nov 12 2007
 
GameUI
Half-Life 2 | Coding | Client Side Tutorials
By: Evil_j | Oct 29 2007
 
3 State Zoom For Any Weapon
Half-Life 2 | Coding | Server Side Tutorials
By: Ennuified | Oct 18 2007
 
Storing weapons on ladder
Half-Life 2 | Coding | Snippets
By: cct | Sep 07 2007
 
CTF Gameplay Part 1
Half-Life | Coding | Shared Tutorials
By: DarkNight | Aug 28 2007
 
CTF Gameplay Part 1
Half-Life | Coding | Shared Tutorials
By: deedok | Aug 20 2007
 
Debugging your half-life 2 mod
Half-Life 2 | Coding | Articles
By: blackshark | Aug 17 2007
 

Site Info
296 Approved Articless
5 Pending Articles
3940 Registered Members
0 People Online (14 guests)
About - Credits - Contact Us

Wavelength version: 3.0.0.9
Valid XHTML 1.0! Valid CSS!