Raised This Month: $ Target: $400
 0% 

[ES]Muerte por granda y animacion personalizada


  
 
 
Thread Tools Display Modes
Author Message
S34Qu4K3
Veteran Member
Join Date: Jan 2010
Location: Galicia
Old 09-21-2010 , 18:30   [ES]Muerte por granda y animacion personalizada
#1

Buenas, queria saber como hacer para detectar en HamKilled si la muerte fue mediante he, y si es asi, que no haga ninguna animacion de muerte por default, sino que haga la que he hecho yo

Y como puedo detectar si estaba mirando hacia el punto de explosion de la HE o si estaba de espaldas?
__________________

- ASM2SMA: Experimental AMXX Assembly encoder

- Defuse Bar Fix

Quote:
Originally Posted by Arkshine
I DON'T WANT TO SEE NOOOOOOOOOOOOOOO AHHHHH. MY EYES ARE ALREADY HURT.
S34Qu4K3 is offline
TucanN#
Veteran Member
Join Date: May 2009
Location: Argentina, Mendoza
Old 09-21-2010 , 19:57   Re: [ES]Muerte por granda y animacion personalizada
#2

fijate esa native :d

native get_user_weapon(index,&clip=0,&ammo=0);

Last edited by TucanN#; 09-21-2010 at 19:59.
TucanN# is offline
Send a message via MSN to TucanN#
S34Qu4K3
Veteran Member
Join Date: Jan 2010
Location: Galicia
Old 09-22-2010 , 09:12   Re: [ES]Muerte por granda y animacion personalizada
#3

Si, eos se, lo que quiero es como animar el player:
Tengo esto pero no va, cuando muere no hace la animacion:
PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <hamsandwich>
#include <cstrike>


#define PLUGIN "Realistic Grenade Death"
#define VERSION "1.0"
#define AUTHOR "S34Qu4K3"


public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_Killed"player""FwdHamPlayerKilled")
}
public 
FwdHamPlayerKilled(victimattackershouldgib)
{
    new 
model[32]
    
cs_get_user_model(victimmodelcharsmax(model))
    if (
equal(model"artic"))
    {
    
set_pevvictimpev_sequence"death_grenade_front" )
    
set_pevvictimpev_animtimeget_gametime() );
    
set_pevvictimpev_framerate1.0 );
    }
    

Code de l aanimacion by Joropito
__________________

- ASM2SMA: Experimental AMXX Assembly encoder

- Defuse Bar Fix

Quote:
Originally Posted by Arkshine
I DON'T WANT TO SEE NOOOOOOOOOOOOOOO AHHHHH. MY EYES ARE ALREADY HURT.
S34Qu4K3 is offline
Raddish
BANNED
Join Date: Jul 2008
Location: Argentina
Old 09-22-2010 , 13:09   Re: [ES]Muerte por granda y animacion personalizada
#4

https://forums.alliedmods.net/showthread.php?t=86951
Raddish is offline
S34Qu4K3
Veteran Member
Join Date: Jan 2010
Location: Galicia
Old 09-22-2010 , 13:31   Re: [ES]Muerte por granda y animacion personalizada
#5

Si hago asi, en un clcmd:
PHP Code:
public FwdHamPlayerKilled(id)
{
    new 
model[32]
    
cs_get_user_model(idmodelcharsmax(model))
    if (
equal(model"artic"))
    {
    
set_pevidpev_sequence"death_grenade_front" )
    }
    

sigue sin pasar nada, ni errores ni nada
__________________

- ASM2SMA: Experimental AMXX Assembly encoder

- Defuse Bar Fix

Quote:
Originally Posted by Arkshine
I DON'T WANT TO SEE NOOOOOOOOOOOOOOO AHHHHH. MY EYES ARE ALREADY HURT.
S34Qu4K3 is offline
Raddish
BANNED
Join Date: Jul 2008
Location: Argentina
Old 09-22-2010 , 13:36   Re: [ES]Muerte por granda y animacion personalizada
#6

no debe ir un string, sino un numero.
Raddish is offline
S34Qu4K3
Veteran Member
Join Date: Jan 2010
Location: Galicia
Old 09-22-2010 , 13:42   Re: [ES]Muerte por granda y animacion personalizada
#7

Da igual, si le quito todo y dejo el set_pev solo sigue sin ir

PD : Estoy comprobando con la vista 3D del plugin cameras si la animacion va y no, no funciona
__________________

- ASM2SMA: Experimental AMXX Assembly encoder

- Defuse Bar Fix

Quote:
Originally Posted by Arkshine
I DON'T WANT TO SEE NOOOOOOOOOOOOOOO AHHHHH. MY EYES ARE ALREADY HURT.
S34Qu4K3 is offline
Raddish
BANNED
Join Date: Jul 2008
Location: Argentina
Old 09-22-2010 , 17:51   Re: [ES]Muerte por granda y animacion personalizada
#8

set_pev( id, pev_sequence, 02)

Van numeros.
Raddish is offline
S34Qu4K3
Veteran Member
Join Date: Jan 2010
Location: Galicia
Old 09-22-2010 , 17:57   Re: [ES]Muerte por granda y animacion personalizada
#9

nada, sigue sin ir
PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <hamsandwich>
#include <cstrike>


#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "S34Qu4K3"


public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
//RegisterHam(Ham_Spawn, "player", "FwdHamPlayerKilled")
    
register_clcmd("say /asd""FwdHamPlayerKilled")
}
public 
FwdHamPlayerKilled(id)
{
    
    
set_pevidpev_sequence03 )
    
    

__________________

- ASM2SMA: Experimental AMXX Assembly encoder

- Defuse Bar Fix

Quote:
Originally Posted by Arkshine
I DON'T WANT TO SEE NOOOOOOOOOOOOOOO AHHHHH. MY EYES ARE ALREADY HURT.
S34Qu4K3 is offline
Raddish
BANNED
Join Date: Jul 2008
Location: Argentina
Old 09-22-2010 , 18:01   Re: [ES]Muerte por granda y animacion personalizada
#10

set_task(0.1, "cambiar_secuense", victima)

public cambiar_secuense(id) set_pev(id, pev_sequence, 03)
Raddish is offline
 



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 00:52.


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