AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   TE_MODEL?? (https://forums.alliedmods.net/showthread.php?t=24433)

swobj 02-22-2006 16:17

TE_MODEL??
 
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???

Hawk552 02-22-2006 16:23

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.

Twilight Suzuka 02-22-2006 17:00

Its a float.

swobj 02-22-2006 17:13

Can you make a lil snippet thingy so i know what your trying to say??

Hawk552 02-22-2006 17:30

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)

swobj 02-22-2006 17:42

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...

Hawk552 02-22-2006 17:44

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

You don't have to use temp ents.

swobj 02-22-2006 18:08

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...

Hawk552 02-22-2006 18:11

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)

Kraugh 02-22-2006 22:18

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.


All times are GMT -4. The time now is 20:16.

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