Raised This Month: $32 Target: $400
 8% 

Need Help with Model [TF2]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 05-03-2008 , 17:55   Need Help with Model [TF2]
Reply With Quote #1

In my plugin I would like to spawn a model, but I get following error.

Code:
Spawnpoint at (2472.00 -1616.00 -124.00) is not clear.
How can I fix that?

Here is my code.
PHP Code:
Parachute_Ent[client] = CreateEntityByName("prop_physics");
DispatchKeyValue(Parachute_Ent[client],"model",path);
SetEntityMoveType(Parachute_Ent[client], MOVETYPE_NOCLIP);
DispatchSpawn(Parachute_Ent[client]);

new 
Float:Client_Origin[3];
new 
Float:Client_Angles[3];
new 
Float:Parachute_Angles[3] = {0.00.00.0};
GetClientAbsOrigin(client,Client_Origin);
GetClientAbsAngles(client,Client_Angles);
Parachute_Angles[1] = Client_Angles[1];
TeleportEntity(Parachute_Ent[client], Client_OriginParachute_AnglesNULL_VECTOR); 
Sidenote:
Works perfect in CS:Source and DoD:Source.

Thanks in Advance!

Last edited by SWAT_88; 05-03-2008 at 18:04.
SWAT_88 is offline
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 05-03-2008 , 21:24   Re: Need Help with Model [TF2]
Reply With Quote #2

SetEntityModel(entity, const String:model[])
__________________
http://www.nican132.com
I require reputation!
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 05-04-2008 , 08:18   Re: Need Help with Model [TF2]
Reply With Quote #3

I tested it, but it doesnt work.

Here is my code.
PHP Code:
Parachute_Ent[client] = CreateEntityByName("prop_physics");
DispatchKeyValue(Parachute_Ent[client],"model",path);
SetEntityMoveType(Parachute_Ent[client], MOVETYPE_NOCLIP);
SetEntityModel(Parachute_Ent[client],path);
DispatchSpawn(Parachute_Ent[client]);

new 
Float:Client_Origin[3];
new 
Float:Client_Angles[3];
new 
Float:Parachute_Angles[3] = {0.00.00.0};
GetClientAbsOrigin(client,Client_Origin);
GetClientAbsAngles(client,Client_Angles);
Parachute_Angles[1] = Client_Angles[1];
TeleportEntity(Parachute_Ent[client], Client_OriginParachute_AnglesNULL_VECTOR);
SetEntityModel(Parachute_Ent[client],path); 
SWAT_88 is offline
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 05-04-2008 , 17:12   Re: Need Help with Model [TF2]
Reply With Quote #4

Has nobody an idea?
I really want that this works for TF2.
I don't want to disable the Model in TF2.

Sidenote:

I think the problem is
TeleportEntity.

Thanks in Advance.


SWAT_88 is offline
Reply


Thread Tools
Display Modes

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 10:21.


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