Raised This Month: $ Target: $400
 0% 

Change the corpse model.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Anggara_nothing
Veteran Member
Join Date: Jan 2009
Location: Indonesia
Old 05-15-2009 , 12:09   Change the corpse model.
Reply With Quote #1

How to change the corpse model ???
and give me example code, please.

Thanks for helping.
Anggara_nothing is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 05-15-2009 , 12:14   Re: Change the corpse model.
Reply With Quote #2

just set model to that player wich body you want to change...
__________________
xPaw is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 05-15-2009 , 13:07   Re: Change the corpse model.
Reply With Quote #3

You can modify the ClCorpse message to set the player model of your choice.

Note: The message isn't called until the player is completely dead, so you will see the death animation with the players current model.

PHP Code:
public plugin_init()
    
register_message(get_user_msgid("ClCorpse"), "msg_ClCorpse");

public 
msg_ClCorpse()
    
set_msg_arg_string(1"vip"); 
hlstriker is offline
Anggara_nothing
Veteran Member
Join Date: Jan 2009
Location: Indonesia
Old 05-15-2009 , 20:03   Re: Change the corpse model.
Reply With Quote #4

Thanks, guys !
+karma to you, all.
Anggara_nothing is offline
Anggara_nothing
Veteran Member
Join Date: Jan 2009
Location: Indonesia
Old 05-16-2009 , 10:30   Re: Change the corpse model.
Reply With Quote #5

I have a question again. How to change the corpse model after 60 second ???
I try add set_task and doesn't work.
Anggara_nothing is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-16-2009 , 10:52   Re: Change the corpse model.
Reply With Quote #6

You can't since the corpse is not an entity anymore.

But not sure, you could maybe used the entity "bodyque". I mean blocking the original corpse creation, spawing a "bodyque" entity, then changing when you want the model on this entity.
Arkshine is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 05-16-2009 , 11:03   Re: Change the corpse model.
Reply With Quote #7

there was a plugin called bones , it changes all corpses to skeletons
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
Old 05-16-2009, 11:10
Arkshine
This message has been deleted by Arkshine. Reason: nvm
Owyn
Veteran Member
Join Date: Nov 2007
Old 05-16-2009 , 11:13   Re: Change the corpse model.
Reply With Quote #9

he allways can edit plugins code...
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-16-2009 , 11:14   Re: Change the corpse model.
Reply With Quote #10

You're right, I was not remember the code, but I don't like its method.
Arkshine is offline
Reply


Thread Tools
Display Modes

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 01:31.


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