AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Change the corpse model. (https://forums.alliedmods.net/showthread.php?t=92452)

Anggara_nothing 05-15-2009 12:09

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

Thanks for helping.:)

xPaw 05-15-2009 12:14

Re: Change the corpse model.
 
just set model to that player wich body you want to change...

hlstriker 05-15-2009 13:07

Re: Change the corpse model.
 
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"); 


Anggara_nothing 05-15-2009 20:03

Re: Change the corpse model.
 
Thanks, guys ! :D
+karma to you, all.

Anggara_nothing 05-16-2009 10:30

Re: Change the corpse model.
 
I have a question again. How to change the corpse model after 60 second ???
I try add set_task and doesn't work. :(

Arkshine 05-16-2009 10:52

Re: Change the corpse model.
 
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.

Owyn 05-16-2009 11:03

Re: Change the corpse model.
 
there was a plugin called bones , it changes all corpses to skeletons

Owyn 05-16-2009 11:13

Re: Change the corpse model.
 
he allways can edit plugins code...

Arkshine 05-16-2009 11:14

Re: Change the corpse model.
 
You're right, I was not remember the code, but I don't like its method.


All times are GMT -4. The time now is 01:31.

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