Raised This Month: $ Target: $400
 0% 

[Help] Throw away dead body on death ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 09-08-2016 , 11:34   [Help] Throw away dead body on death ?
Reply With Quote #1

hi guys,
i need a code to throw away players dead body on death.
i used this code but doesnt work (i think i doesnt work cuz i have to define the dead body entity of victim)

can somebody help me to make a working code ?

PHP Code:
public fw_PlayerKilled(victimattackershouldgib)
{
   
    if (
is_user_connected(attacker) && is_user_connected(victim))
    {
        static 
Float:fVelocity[3]
        
velocity_by_aim(attacker500fVelocity)
        
fVelocity[2] = 50.0
        set_pev
(victimpev_velocityfVelocity)

    }


__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP






Last edited by New.ZM.Life; 09-08-2016 at 11:35.
New.ZM.Life is offline
Dr Zayd
Senior Member
Join Date: Jun 2014
Location: forums.alliedmods.net
Old 09-08-2016 , 11:47   Re: [Help] Throw away dead body on death ?
Reply With Quote #2

You can use your own models (when a player dies he only gets thrown)
I think you can copy this from hs animation ?
P.S / i dont have a knowledge about this.
__________________
Invisible System | 100%
ـــــــــــــــــــــــــــــ
Anti setinfo check | Ez Plugin and lite
ـــــــــــــــــــــــــــــ
[ZP] Free VIP Menu | Free VIP menu | ZP-Mod |

Last edited by Dr Zayd; 09-08-2016 at 11:48. Reason: bad en
Dr Zayd is offline
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 09-08-2016 , 13:12   Re: [Help] Throw away dead body on death ?
Reply With Quote #3

Quote:
Originally Posted by Dr Zayd View Post
You can use your own models (when a player dies he only gets thrown)
I think you can copy this from hs animation ?
P.S / i dont have a knowledge about this.

i know about slowmo plugin, it set gravity to dead player to make his death animation as slowmotion.
i need a better way to throw the body away, like when C4 explodes and players throw away.
__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP





New.ZM.Life is offline
Old 09-08-2016, 13:24
New.ZM.Life
This message has been deleted by New.ZM.Life.
Depresie
Veteran Member
Join Date: Nov 2013
Old 09-10-2016 , 11:17   Re: [Help] Throw away dead body on death ?
Reply With Quote #4

How did you register HamKill ? in Pre or Post ?
__________________
Depresie is offline
4ever16
Veteran Member
Join Date: Apr 2015
Old 09-12-2016 , 13:41   Re: [Help] Throw away dead body on death ?
Reply With Quote #5

There is a plugin for this already.
After death dead body dissapears.
Dont know the name but google or search here.
4ever16 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 15:23.


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