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

[REQ] Slow motions after Headshot kill


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 12-18-2011 , 15:45   [REQ] Slow motions after Headshot kill
Reply With Quote #1

Hello, could anybody write me a plugin that when you kill an enemy with a head-shot he's falling slowly like in this video Try this at 1:20 seconds. Also, I want the plugin to do only that, no other functions.

Last edited by Lolz0r; 04-06-2012 at 08:55.
Lolz0r is offline
FinSmart
Junior Member
Join Date: Oct 2009
Location: Planet Pluto
Old 12-19-2011 , 17:52   Re: [REQ] Awesome head-shot effect
Reply With Quote #2

u mean like this??

http://forums.alliedmods.net/showthread.php?p=204454
__________________
Once A Camper,Always A Camper
FinSmart is offline
Send a message via MSN to FinSmart
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 12-20-2011 , 14:20   Re: [REQ] Awesome head-shot effect
Reply With Quote #3

I've found this:

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

new g_bSlomo
#define SetUserSlomo(%1)        g_bSlomo |= 1<<( %1 & 31 )
#define ClearUserSlomo(%1)      g_bSlomo &= ~( 1<<( %1 & 31 ) )
#define HasUserSlomo(%1)        g_bSlomo &  1<<( %1 & 31 )

new g_SlowMotionRate

new g_iPlayerPreThink

public plugin_init()
{
        
register_plugin"Death Slow Motion""2.1.0""ConnorMcLeod" )

        
RegisterHamHam_Spawn"player""Player_Spawn_Post")
        
RegisterHamHam_Killed"player""Player_Killed_Post")
     
        
g_SlowMotionRate register_cvar"hs_slowmo_rate""1.0" )
}

public 
client_putinserverid )
{
        
PlayerClearid )
}

public 
client_disconnectid )
{
        
PlayerClearid )
}

public 
Player_Spawn_Postid )
{
        
PlayerClearid )
}
    
public 
Player_Killed_Postid )
{
        
SetUserSlomoid )

        
set_pevidpev_gravity0.3 )

        new 
Float:fVecVelocity], Float:flRate get_pcvar_floatg_SlowMotionRate )
        
pevidpev_velocityfVecVelocity )

        
fVecVelocity] /= flRate
        fVecVelocity
] /= flRate
        set_pev
idpev_velocityfVecVelocity )

        if( !
g_iPlayerPreThink )
        {
                
g_iPlayerPreThink register_forwardFM_PlayerPreThink"PlayerPreThink" )
        }
}

PlayerClearid )
{
        
ClearUserSlomoid )
        if( !
g_bSlomo && g_iPlayerPreThink )
        {
                
unregister_forwardFM_PlayerPreThinkg_iPlayerPreThink )
                
g_iPlayerPreThink 0
        
}
}

public 
PlayerPreThinkid )
{
        if( ~
HasUserSlomoid ) )
        {
                return
        }

        if( 
pevidpev_deadflag ) == DEAD_DEAD )
        {
                
PlayerClearid )
                return
        }

        
set_pevidpev_framerateget_pcvar_floatg_SlowMotionRate ) )

But in falling sometimes it's getting bugged, for example, it pulls you to one side and you fall after this and if it's possible can someone make it only for headshots?

Last edited by Lolz0r; 12-21-2011 at 10:55.
Lolz0r is offline
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 01-04-2012 , 06:07   Re: [REQ] Awesome head-shot effect
Reply With Quote #4

Everyone?

Last edited by Lolz0r; 01-04-2012 at 06:08.
Lolz0r is offline
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 04-06-2012 , 08:42   Re: [REQ] Awesome head-shot effect
Reply With Quote #5

Bumb.
Lolz0r 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 10:55.


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