AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Remove-ing Dead Body. (https://forums.alliedmods.net/showthread.php?t=111393)

ƒa†es™ 12-10-2009 12:50

Remove-ing Dead Body.
 
Does anyone know how to remove the dead body when client just die for 1 second.

KadiR 12-10-2009 15:15

Re: Remove-ing Dead Body.
 
It has been much discussed before. Search for corpse..

ƒa†es™ 12-11-2009 00:50

Re: Remove-ing Dead Body.
 
Quote:

Originally Posted by KadiR (Post 1012497)
It has been much discussed before. Search for corpse..

I currently using this, after about 2 - 3 second the corpse will disapear

PHP Code:

set_msg_blockget_user_msgid"ClCorpse" ), BLOCK_SET 

But i want the corpse to disapear in 1 second time. Or even better doesn't see the bodies

Exolent[jNr] 12-11-2009 01:02

Re: Remove-ing Dead Body.
 
When player dies, set their origin to somewhere outside of the map.

ƒa†es™ 12-11-2009 01:11

Re: Remove-ing Dead Body.
 
Quote:

Originally Posted by Exolent[jNr] (Post 1013045)
When player dies, set their origin to somewhere outside of the map.

I try this it work perfect but 1 problem after the user die his screen will also change to the same as the orign.

PHP Code:

engfuncEngFunc_SetOriginread_data), Float:{ -4800.0,-4800.0,-4800.0 } ) 

How to not let the screen change to the same origin.

jim_yang 12-11-2009 01:45

Re: Remove-ing Dead Body.
 
pev_effects set to EF_NODRAW

joropito 12-11-2009 14:03

Re: Remove-ing Dead Body.
 
Quote:

Originally Posted by ƒa†es™ (Post 1013052)
I try this it work perfect but 1 problem after the user die his screen will also change to the same as the orign.

PHP Code:

engfuncEngFunc_SetOriginread_data), Float:{ -4800.0,-4800.0,-4800.0 } ) 

How to not let the screen change to the same origin.

before changing origin, do this
PHP Code:

attach_view(iddeadidkiller

iddead = id of dead player
idkiller = id of who kills iddead

ƒa†es™ 12-16-2009 08:22

Re: Remove-ing Dead Body.
 
Quote:

Originally Posted by joropito (Post 1013461)
before changing origin, do this
PHP Code:

attach_view(iddeadidkiller

iddead = id of dead player
idkiller = id of who kills iddead

Code:

attach_view( iddead, idkiller )
undefined symbol "attach_view", "idkiller"

ConnorMcLeod 12-16-2009 11:44

Re: Remove-ing Dead Body.
 
It's from engine module, you can use SetView from FM.
Anyway, set pev_effects would be better.

ƒa†es™ 12-16-2009 12:27

Re: Remove-ing Dead Body.
 
Quote:

Originally Posted by ConnorMcLeod (Post 1018844)
It's from engine module, you can use SetView from FM.
Anyway, set pev_effects would be better.

I try this but still i won't see the attacker screen.

PHP Code:

new id read_data)
new 
killer read_data)
 
attach_viewidkiller )
engfuncEngFunc_SetOriginread_data), Float:{ -4800.0,-4800.0,-4800.0 } ) 



All times are GMT -4. The time now is 06:50.

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