AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to remove player model when die and replace it with alternative animations model (https://forums.alliedmods.net/showthread.php?t=84539)

HiSS 01-27-2009 14:59

How to remove player model when die and replace it with alternative animations model
 
Hi, I have player models that have different animations when the player dies.
(the player drops dead and moves a few meters bleeding after die).

I want to remove the original player when die, and replace it with a cycler_sprite (or something) with the new animation. I have the new models only with death animation, one for stand and another if is ducking when die.

Any idea?

BOYSplayCS 01-27-2009 19:07

Re: How to remove player model when die and replace it with alternative animations mo
 
PHP Code:

set_pev(idpev_viewmodelengfunc(EngFunc_AllocString"models/folder/MyModel.mdl")); 

Something with that nature, ENGINE confuses me sometimes. :/

Arkshine 01-27-2009 19:19

Re: How to remove player model when die and replace it with alternative animations mo
 
pev_viewmodel is for weapon, BOYSplayCS.

BOYSplayCS 01-27-2009 19:21

Re: How to remove player model when die and replace it with alternative animations mo
 
Ima go research engine =]

Arkshine 01-27-2009 19:53

Re: How to remove player model when die and replace it with alternative animations mo
 
@HiSS :

Well, did you try to hook when player dies then to replace the default player model by yours and applying the sequence you want ?

HiSS 02-02-2009 21:28

Re: How to remove player model when die and replace it with alternative animations mo
 
Thanks for answer, currentlry I'm trying to do something similar. I'll post the code if I can get that to work.

Greetings.


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

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