Exemplo n.º 1
0
CGrappleHook* CGrappleHook :: Create( Vector Pos, Vector Aim, CBasePlayer* Owner ) 
{
	ALERT( at_console, "^2HLU -> ^3weapon_grapple ^2-> Tongue spawned.\n");
	CGrappleHook* Hook = GetClassPtr( (CGrappleHook*)NULL ); 
	UTIL_SetOrigin( Hook->pev, Pos ); 
	Hook->pev->angles = Aim; 
	Hook->Spawn(); 
	Hook->SetTouch( &CGrappleHook::Hit ); 
	Hook->pev->owner = Owner->edict();
	Hook->myowner = Owner;
	return Hook;
}