ZFGC

Projects => Discussion => Topic started by: MG-Zero on July 05, 2006, 03:56:05 pm

Title: Are there any Half-Life 2 modders out there?
Post by: MG-Zero on July 05, 2006, 03:56:05 pm
Yea, before I go on, you probably won't be able to help much unless you know howe the hl2 engine works.

I'm having trouble with the CBaseEntity:Create function.  I'm trying to get gman to spawn out of an RPG missile explosion.  However, even though i've copied and pasted the function and changed the first parameter to npc_gman, it tells me the other 3 parameters are undeclared identifiers (which clearly I don't understand).

This is what the function looks like..

CBaseEntity::Create( "rpg_missile", vecOrigin, vecAngles, CBaseEntity::Instance( pentOwner ) );

That creates an RPG Missile for the RPG.  What I have gotten to work, was I pasted that function into the CMissile::Create function (also where I copied it from) and changed it to npc_gman.  It worked, but gman spawned where i am, not where the missile was.

Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved