Raised This Month: $ Target: $400
 0% 

TE_MODEL??


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
swobj
Junior Member
Join Date: Jun 2004
Old 02-22-2006 , 16:17   TE_MODEL??
Reply With Quote #1

I was wondering, is there a way to manipulate TE_MODEL (in SVC_TEMPENTITY) to not bounce away and just stay at the origin for the appointed time set???
swobj is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-22-2006 , 16:23  
Reply With Quote #2

Set the velocity (second write_coord) to 0,0,0, or 0.0,0.0,0.0, I don't remember whether it's a float or not.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 02-22-2006 , 17:00  
Reply With Quote #3

Its a float.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
swobj
Junior Member
Join Date: Jun 2004
Old 02-22-2006 , 17:13  
Reply With Quote #4

Can you make a lil snippet thingy so i know what your trying to say??
swobj is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-22-2006 , 17:30  
Reply With Quote #5

Try this:

Code:
write_coord(100) // pos x write_coord(200) // pos y write_coord(300) // pos z write_coord(0) // vel x write_coord(0) // vel y write_coord(0) // vel z write_angle(0) // angle write_short(model) // id of precached model write_byte(soundtype) // bounce sound type write_byte(5) // will last 5 seconds (I think)
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
swobj
Junior Member
Join Date: Jun 2004
Old 02-22-2006 , 17:42  
Reply With Quote #6

nope, I'm in the air, and he still falls down under me.... What is the problem. Why does he fall downward. I am flying in the air and when it happens it comes out of the origin and falls straight down... how do i make it stay at the origin and not move...
swobj is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-22-2006 , 17:44  
Reply With Quote #7

You could always just spawn an entity and give it a model, then lock it in that place

You don't have to use temp ents.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
swobj
Junior Member
Join Date: Jun 2004
Old 02-22-2006 , 18:08  
Reply With Quote #8

Yeah I've done that, but it left me unsatisfied... I don't know how to delete it the entity... If u can give me that piece of information I would do that... Also I don't know how to move the entity to the origin of the character...
swobj is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-22-2006 , 18:11  
Reply With Quote #9

1)
Code:
remove_entity(ent)

2)
Code:
new Float:vOrigin[3] entity_get_vector(id,EV_VEC_origin,vOrigin) entity_set_vector(ent,EV_VEC_origin,vOrigin)
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Kraugh
Senior Member
Join Date: Jan 2006
Location: barrington, ri
Old 02-22-2006 , 22:18  
Reply With Quote #10

the reason it still falls is even because you give it an initial velocity of 0, it is still affected by gravity. to my knowledge you cannot change how TE_MODEL's work in this manner.
__________________
"You can not restrain a fool from speaking, but nothing obliges you to listen."
Kraugh is offline
Send a message via AIM to Kraugh
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 20:16.


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