Raised This Month: $51 Target: $400
 12% 

[CSS] Life State and Model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Razmo51
Senior Member
Join Date: Aug 2011
Location: Event "player_death
Old 12-12-2013 , 15:10   [CSS] Life State and Model
Reply With Quote #1

Hello,

I'm trying to set a model on 'dead' player (Using Redie function)

The problem: the dead player is invisible, so we can't see his skin ;(

I tried with SetEntityRenderMode & SetEntityRenderColor, but it doesn't work

My code:
Code:
SetEntProp(client, Prop_Send, "m_lifeState", 1);
SetEntData(client, g_Collision, 2, 4, true);
SetEntityModel(client, MODEL_PATH);
SetEntityRenderMode(client, RENDER_NORMAL);
SetEntityRenderColor(client);
Is there any way to do that ?

Thanks in advance.
__________________
Sorry for my bad English, I'm Belgian
Razmo51 is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 12-12-2013 , 23:51   Re: [CSS] Life State and Model
Reply With Quote #2

Use SDK hook. Kill that ragdoll before the event fire and replace it with chicken your model. There is a guide by power loard just few thread below. Try find it.
__________________
If i happen to insulted you unintentionally,
it was me and Google Translate who did it.
GsiX is offline
Razmo51
Senior Member
Join Date: Aug 2011
Location: Event "player_death
Old 12-13-2013 , 15:13   Re: [CSS] Life State and Model
Reply With Quote #3

Quote:
Originally Posted by GsiX View Post
Use SDK hook. Kill that ragdoll before the event fire and replace it with chicken your model. There is a guide by power loard just few thread below. Try find it.
Will the player control the ragdoll ? I don't think so
If yes, will the game consider the player dead ?

I don't understand how to give client possibility of control on the ragdoll :X
__________________
Sorry for my bad English, I'm Belgian
Razmo51 is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 12-13-2013 , 15:26   Re: [CSS] Life State and Model
Reply With Quote #4

Have you even try to find THIS.

EDIT: As i understand, you cant set a model on a dead player(ragdoll). What you can is kill the ragdoll before it spawn to prevent you from losing control over it. Then spawn a new model as a replacement.

EDIT10: When i re-read your first post for the 10th times again.. i think we have a misunderstand here.. If so, your problem is SetParent(). Sorry.. i m answering between my documentary movie.
__________________
If i happen to insulted you unintentionally,
it was me and Google Translate who did it.

Last edited by GsiX; 12-13-2013 at 15:51. Reason: Pay attention when reading something
GsiX 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 06:01.


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