AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   entity flag that makes angles to change (https://forums.alliedmods.net/showthread.php?t=92721)

Hunter-Digital 05-18-2009 19:02

entity flag that makes angles to change
 
Is there a flag that automaticly modifies the entity's angles while in midair or something ? I am not looking for EV_VEC_angles, but something that I set once and it'll move on it's own, like EV_INT_movetype :}

I tried some but none seem to do anything...

Arkshine 05-18-2009 19:04

Re: entity flag that makes angles to change
 
*_avelocity

Hunter-Digital 05-18-2009 19:17

Re: entity flag that makes angles to change
 
tried that, didn't work... what did I do wrong ?

PHP Code:

new ent create_entity(ENTITY_info_target)

entity_set_model(entMDL_test)
entity_set_edict(entEV_ENT_ownerid)
entity_spawn(ent// this is DispatchSpawn()
entity_set_int(entEV_INT_movetypeMOVETYPE_PUSHSTEP)
entity_set_origin(entfOrigin)
entity_set_vector(entEV_VEC_anglesfAngles)
entity_set_vector(entEV_VEC_velocityfVelocity)
entity_set_vector(entEV_VEC_avelocityFloat:{100.0100.01000.0}) 

I just set some values there to see what it does, and no result, just does what it did before, flies out of me xD I tried even removing the angles set, maybe it's a conflict or something, still the same...

Arkshine 05-18-2009 19:28

Re: entity flag that makes angles to change
 
Not sure if the movetype is correct. Should not be MOVETYPE_FLY or something ?

Edit : If I remember it will not work if entity is in collision with something.

Hunter-Digital 05-18-2009 19:37

Re: entity flag that makes angles to change
 
Well, while it's in air it doesn't do anything, I'll set it to movetype fly and see :?

edit: yeah, it works with that, I'll see wich other movetypes work with :?

edit2: works with MOVETYPE_TOSS also, but I don't understand why doesn't it work with MOVETYPE_PUSHSTEP too... how's the remove bomb from HL made ? :?


All times are GMT -4. The time now is 01:29.

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