Raised This Month: $ Target: $400
 0% 

move dead bodies


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 02-02-2008 , 13:53   move dead bodies
Reply With Quote #1

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?
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 02-02-2008 , 15:05   Re: move dead bodies
Reply With Quote #2

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.
}
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 02-02-2008 , 15:50   Re: move dead bodies
Reply With Quote #3

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)
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 02-03-2008 , 07:39   Re: move dead bodies
Reply With Quote #4

You can move corpse only before ClCorpse is fired.
Though there are hackish way: remove/redraw all existing corpses.
VEN is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 02-03-2008 , 07:51   Re: move dead bodies
Reply With Quote #5

Look here http://forums.alliedmods.net/showthread.php?p=475029 is working , and also in Hawk tutorial with dead bodyes works. :E
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
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 07:57.


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