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

[REQ] HeadSplash plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
snorlax4
New Member
Join Date: Aug 2017
Location: Norway
Old 08-19-2017 , 10:11   [REQ] HeadSplash plugin
Reply With Quote #1

Hello, i need an plugin that allows you to kill CT (when you are T) by jumping on the head.
snorlax4 is offline
FR0NTLINE
AlliedModders Donor
Join Date: Apr 2006
Location: Riverside Cali
Old 08-23-2017 , 14:17   Re: [REQ] HeadSplash plugin
Reply With Quote #2

haahh thats funny thought, you should call it Death Boots, or Razor Feet. Killer Shoes! MEAT CLEATS. And i would assume it's vice versa depending on what side your on. Good Idea, because when I jump on an enemy's head and i'm trying to knife him, as you know is a pain in the ass, Would be awesome to end it with the pounce!
__________________
FR0NTLINE is offline
Send a message via AIM to FR0NTLINE Send a message via MSN to FR0NTLINE Send a message via Yahoo to FR0NTLINE
FR0NTLINE
AlliedModders Donor
Join Date: Apr 2006
Location: Riverside Cali
Old 08-23-2017 , 14:18   Re: [REQ] HeadSplash plugin
Reply With Quote #3

you Could also have an Hud Text say something like, Player Just Squished Player2, or Player just kicked Player2 In the Face. Player1 just Put the Stomp Down on Player2's Dome! Player1 just Crushed Player2's Dreams, maybe add the Dreamcrusher wav, I got 1000 more ideas if you need.
__________________

Last edited by FR0NTLINE; 08-23-2017 at 14:20. Reason: stuff.
FR0NTLINE is offline
Send a message via AIM to FR0NTLINE Send a message via MSN to FR0NTLINE Send a message via Yahoo to FR0NTLINE
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 08-24-2017 , 04:30   Re: [REQ] HeadSplash plugin
Reply With Quote #4

this is allready made, just need to check for teams and change damage

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

#define PLUGIN                    "Land Reality"
#define AUTHOR                    "OT"
#define VERSION                    "1.3"

// You can modify
#define MAX_PLAYERS                32

#define MIN_DAMAGE_VELOCITY        150.0
#define UNIT_MAKE_MORE_DAMAGE    50

// Do not modify
#define OFFSET_PL_FALLVEL        251
#define EXTRA_PL_OFFSET            5

new Float:old_fall_vel[MAX_PLAYERS 1]
new 
Float:fall_vel[MAX_PLAYERS 1]
new 
bool:was_on_ladder[MAX_PLAYERS 1]
new 
g_maxplayers

new pcv_ff
new pcv_da

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_cvar("land_real_version"VERSIONFCVAR_SPONLY FCVAR_SERVER)
    
    
pcv_ff get_cvar_pointer("mp_friendlyfire")
    
pcv_da register_cvar("mp_lr_damage""1"// 0 - do not damage teammates, 1 - follow FF
    
    
g_maxplayers get_maxplayers()
}

public 
client_PreThink(id)
{
    if ( !
is_user_alive(id) )
        return 
PLUGIN_CONTINUE
    
    fall_vel
[id] = get_pdata_float(idOFFSET_PL_FALLVELEXTRA_PL_OFFSET)
    static    
ground_ent
    ground_ent 
entity_get_edict(idEV_ENT_groundentity)
    
    if (
fall_vel[id] == 0.0 && old_fall_vel[id] > MIN_DAMAGE_VELOCITY && !was_on_ladder[id])
    {
        if (
is_breakable(ground_ent))
        {
            if ( 
<= ground_ent <= g_maxplayers)
            {
                if (
cs_get_user_team(id) != cs_get_user_team(ground_ent))
                {
                    
ExecuteHamB(Ham_TakeDamageground_ent0id, (10.0 + (float(  floatround(old_fall_vel[id] - MIN_DAMAGE_VELOCITY) / UNIT_MAKE_MORE_DAMAGE ) * 5.0)), DMG_FALL)
                }
                else
                {
                    if (
get_pcvar_num(pcv_ff) != && get_pcvar_num(pcv_da) == 1)
                    {
                        
ExecuteHamB(Ham_TakeDamageground_ent0id, (5.0 + (float(  floatround(old_fall_vel[id] - MIN_DAMAGE_VELOCITY) / UNIT_MAKE_MORE_DAMAGE ) * 2.5)), DMG_FALL)
                    }
                }
            }
            else
            {
                
ExecuteHamB(Ham_TakeDamageground_ent0id, (10.0 + (float(  floatround(old_fall_vel[id] - MIN_DAMAGE_VELOCITY) / UNIT_MAKE_MORE_DAMAGE ) * 5.0)), DMG_FALL)
            }
            
            if ((!
is_valid_ent(ground_ent)) || (( <= ground_ent <= g_maxplayers) && !is_user_alive(ground_ent)))
            {
                
// IF entity was destroyed fall velocity continues!
                
fall_vel[id] = old_fall_vel[id] - MIN_DAMAGE_VELOCITY
                set_pdata_float
(idOFFSET_PL_FALLVELfall_vel[id], EXTRA_PL_OFFSET)
                return 
PLUGIN_CONTINUE
            
}
            
        }
    }
    
    
was_on_ladder[id] = (entity_get_int(idEV_INT_movetype) == MOVETYPE_FLY)
    
old_fall_vel[id] = fall_vel[id]
    
    return 
PLUGIN_CONTINUE
}


stock is_breakable(ent)
{
    if (
ent == 0)
        return 
0
    
    
if ((entity_get_float(entEV_FL_health) > 0.0) && (entity_get_float(entEV_FL_takedamage) > 0.0) && !(entity_get_int(entEV_INT_spawnflags) & SF_BREAK_TRIGGER_ONLY))
        return 
1
    
    
return 0

tarsisd2 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 20:46.


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