User:TheDonald: Difference between revisions
No edit summary |
|||
Line 37: | Line 37: | ||
PS Don't get sucked into a hopwire when in god mode because you will crash. | PS Don't get sucked into a hopwire when in god mode because you will crash. | ||
For a solution ot the abstract class error when adding the physgun in VS2008 click here [[ | For a solution ot the abstract class error when adding the physgun in VS2008 click here [[Help Desk#Abstract_Class_Error]] |
Revision as of 13:27, 3 August 2008
Hello this is TheDonald.
I'm just getting started modding so I need a lot of help. Currently I'm working on incorporating the physgun and hopwire into a mod I call Intermission. It is currently in the embryonic stage of development.
Problems 'n' Stuff!
Problem: Why can't my physgun pick up manhacks without crashing?? Is there is problem in physgun.cpp or c_weapon_gravitygun.cpp?
Solution:Physgun manhack fix:
Go into physgun.cpp and add this to the function AttachObject:
C_BaseEntity *pEntity;
if(!pEntity->ClassMatches("npc_manhack"))
{
//rest of function
}
This causes manhacks to die on physgun pickup!!:D
Problem: After gluing a physics object to another physics object with the physgun and destroying one( but not the other ) the game crashes upon pickup of the surviving object.
Solution: Call a Reload() function in an else statement in the WeaponIdle() function. Make the else correspond to the second if statement.--TheDonald 15:59, 23 Jul 2008 (PDT)
PS Don't get sucked into a hopwire when in god mode because you will crash.
For a solution ot the abstract class error when adding the physgun in VS2008 click here Help Desk#Abstract_Class_Error