Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: Are there any Half-Life 2 modders out there?  (Read 1342 times)

0 Members and 1 Guest are viewing this topic.
Are there any Half-Life 2 modders out there?
« on: July 05, 2006, 03:56:05 pm »
  • Doesn't afraid of anything
  • *
  • Reputation: +42/-0
  • Offline Offline
  • Gender: Male
  • Posts: 7002
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.
Logged



i love big weenies and i cannot lie
Pages: [1]   Go Up

 


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



Page created in 0.373 seconds with 39 queries.

anything