AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   move dead bodies (https://forums.alliedmods.net/showthread.php?t=66534)

kp_uparrow 02-02-2008 13:53

move dead bodies
 
from what iv tested, i have failed in trying to move dead bodies by setting a velocity, they just don't move, i tried setting them to MOVETYPE_BOUNCE

and i couldn't move them with set origin
tent refers to a dead body, hooked from ClCorpse
pev(tent, pev_origin, ent_o)
ent_o[2]+=200
set_pev(tent, pev_origin, ent_o)

why not, how can i move a dead body and set velocity on it?

Alka 02-02-2008 15:05

Re: move dead bodies
 
Just set the player origin. Index of actual dead player.

Code:

public Death_Msg()
{
    new id = read_data(2);
 
    new Float:fOrigin[3];
    pev(id, pev_origin, fOrigin);
 
    fOrigin[2] += 200.0;
    set_pev(id, pev_origin, fOrigin); //can use engfunc, is more safe.
}


kp_uparrow 02-02-2008 15:50

Re: move dead bodies
 
im trying to move an actual dead body, i already tried moving the origin and it wont go

pev(tent, pev_origin, ent_o)
ent_o[2]+=200
set_pev(tent, pev_origin, ent_o)

VEN 02-03-2008 07:39

Re: move dead bodies
 
You can move corpse only before ClCorpse is fired.
Though there are hackish way: remove/redraw all existing corpses.

Alka 02-03-2008 07:51

Re: move dead bodies
 
Look here http://forums.alliedmods.net/showthread.php?p=475029 is working , and also in Hawk tutorial with dead bodyes works. :E


All times are GMT -4. The time now is 07:57.

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