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

[Req] Hitbox Remover CS:S


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BoredGamer
New Member
Join Date: Mar 2010
Old 03-08-2010 , 17:51   [Req] Hitbox Remover CS:S
Reply With Quote #1

Hello!

I'm willing to pay for this service via Paypal. Send me a PM if ur interested.
Just have a reasonable price, or feel free to script it for free!

Anyhows, I need someone to write this script for me.

Mod. Counter-Strike:Source
Function. <PlayerA> writes a command in console e.g "dont_kill_me".
This will remove some hitboxes from him e.g head, chest, stomach, making him harder to kill for everyone else.
At new round <PlayerA> hitboxes should be reset to normal.
-OR- if thats not possible have the command be activated all time for the player by "dont_kill_me 1" and then deactivate and set to normal hitboxes by "dont_kill_me 0".
This command should only affect the player that uses it, not all players on the server.

I dont need any fancy code. Keep it clean and simple.
No notices, information or echo in console.
This command should be accessed by anyone on the server.

Hope someone can help me with this, thanks!
BoredGamer is offline
NoS
Senior Member
Join Date: Nov 2006
Old 03-09-2010 , 11:26   Re: [Req] Hitbox Remover CS:S
Reply With Quote #2

I see a problem with this, since everyone can type it in and nobody will die for an entire round.
NoS is offline
SuperShadow
SourceMod Donor
Join Date: Jun 2008
Location: Westminster, MD
Old 03-09-2010 , 12:40   Re: [Req] Hitbox Remover CS:S
Reply With Quote #3

Sounds like god mode to me. How about this: http://forums.alliedmods.net/showthread.php?p=909479
SuperShadow is offline
BoredGamer
New Member
Join Date: Mar 2010
Old 03-10-2010 , 07:37   Re: [Req] Hitbox Remover CS:S
Reply With Quote #4

I dont need GodMode because then you cant kill them. I just need a simple script that removes some hitboxes but still have the player to be able to get killed (in the leg or something).
BoredGamer is offline
DieTeetasse
Senior Member
Join Date: Jul 2009
Old 03-10-2010 , 15:28   Re: [Req] Hitbox Remover CS:S
Reply With Quote #5

Use SDKHooks: https://forums.alliedmods.net/showthread.php?t=106748

Use TraceAttack:
PHP Code:
Action:public(victim, &attacker, &inflictor, &Float:damage, &damagetype, &ammotypehitboxhitgroup
and check for the specific hitbox. If it is change the damage to 0.0 and it would be (almost) the same if you would remove the hitbox.
__________________
DieTeetasse is offline
BoredGamer
New Member
Join Date: Mar 2010
Old 03-12-2010 , 06:50   Re: [Req] Hitbox Remover CS:S
Reply With Quote #6

I dont have any script knowledge.
And I'm still willing to pay $$$ whoever helps me out with this.
BoredGamer is offline
BoredGamer
New Member
Join Date: Mar 2010
Old 03-15-2010 , 07:00   Re: [Req] Hitbox Remover CS:S
Reply With Quote #7

$100 , Anyone?
BoredGamer is offline
canadianjeff
BANNED
Join Date: Sep 2016
Old 03-22-2021 , 02:14   Re: [Req] Hitbox Remover CS:S
Reply With Quote #8

this plugin was never made?
canadianjeff is offline
Teamkiller324
Senior Member
Join Date: Feb 2014
Location: Earth
Old 03-22-2021 , 11:59   Re: [Req] Hitbox Remover CS:S
Reply With Quote #9

wouldn't be hard to make.
__________________
Teamkiller324 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-22-2021 , 13:54   Re: [Req] Hitbox Remover CS:S
Reply With Quote #10

What a necro post
PHP Code:

#include <sdkhooks>
// ---------------------------
//  Hit Group standards
// ---------------------------
#define    HITGROUP_GENERIC    0
#define    HITGROUP_HEAD        1
#define    HITGROUP_CHEST        2
#define    HITGROUP_STOMACH    3
#define HITGROUP_LEFTARM    4    
#define HITGROUP_RIGHTARM    5
#define HITGROUP_LEFTLEG    6
#define HITGROUP_RIGHTLEG    7
#define HITGROUP_GEAR        10            // alerts NPC, but doesn't do damage or bleed (1/100th damage)


enum struct Player {
    
bool enabled;
    
    
void ToggleDontKillMe()
    {
        
this.enabled = !this.enabled;
    }
    
    
bool IsDontKillMe()
    {
        return 
this.enabled;
    }
}

Player player[MAXPLAYERS+1];

public 
void OnPluginStart()
{
    
HookEvent("round_start"round_startEventHookMode_PostNoCopy);

    
RegConsoleCmd("dont_kill_me"dont_kill_me"Player is harder to kill, missing head, chest, stomach hitgroups");
    
    for(
int i 1<= MaxClientsi++)
        if(
IsClientInGame(i)) OnClientPutInServer(i);
}

public 
void round_start(Event event, const char[] namebool dontBroadcast)
{
    for(
int x <= MaxClientsx++) player[x].enabled false;
}

public 
void OnClientPutInServer(int client)
{
    
SDKHook(clientSDKHook_TraceAttackTraceAttack);
}

public 
Action dont_kill_me(int clientint args)
{
    if(!
client || !IsClientInGame(client)) return Plugin_Handled;

    
player[client].ToggleDontKillMe();
    
    return 
Plugin_Handled;
}



public 
Action TraceAttack(int victimint &attackerint &inflictorfloat &damageint &damagetypeint &ammotypeint hitboxint hitgroup)
{
    if(!
player[victim].IsDontKillMe()) return Plugin_Continue;

    switch(
hitgroup)
    {
        case 
HITGROUP_HEADHITGROUP_CHESTHITGROUP_STOMACH:
        {
            return 
Plugin_Handled;
        }
    }
    
    
//PrintToServer("%N dont_kill_me hitbox %i, hitgroup %i", victim, hitbox, hitgroup);    
    
return Plugin_Continue;

Bacardi 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 00:23.


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