This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

getting owner of spawned entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ratty
SourceMod Donor
Join Date: Jan 2006
Old 10-23-2008 , 01:27   getting owner of spawned entity
Reply With Quote #1

I want to make duke's TF2 pipe bomb model do a different model depending on team.

if (StrEqual(classname, "tf_projectile_pipe"))
{
SetEntityModel(edict, model);
}

Thats what it has there now, so at that point you have the edict of the entity, if someone is feeling nice, can you put in a snippit that would figure out the owner of the projectile? I know how to get what team someone is on, so I am guessing there is just some way to get the owner of that entity, at least I hope so.

Also, where can I find more info on projectile entities? Such as what keys there are. I put in tf_projectile_pipe in the valve developer wiki and there's just nothing.
Its probably in the SDK someplace, but I can't find it.
__________________
Visit the NOM NOM NOM community
http://www.nom-nom-nom.us

Last edited by ratty; 10-23-2008 at 01:33.
ratty is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 10-23-2008 , 02:50   Re: getting owner of spawned entity
Reply With Quote #2

I'd first see if the projectile entities have an m_hOwner/m_hOwnerEntity or m_iTeamNum. I'd guess they do, but I'm too lazy to check.
Fyren is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode