Raised This Month: $32 Target: $400
 8% 

l4d2 reflect damage request


Post New Thread Reply   
 
Thread Tools Display Modes
wendigo
Senior Member
Join Date: Nov 2012
Location: Denmark
Old 11-30-2015 , 10:21   Re: l4d2 reflect damage request
Reply With Quote #11

Quote:
Originally Posted by jess View Post
There are dozens of l4d2 plugins that do exactly what you already requested, you just have to learn to use the search function. It takes a little bit of effort, but it isn't difficult.
You know what? Why dont you take your poor attitude somewhere else girl?
I dont need it in my topic here. Read OP, I did search. Whic hwas the only plugin I could find.

There is not ONE plugin for l4d2, that only offers reflect damage. Which is what is being worked on, thanks to DeathChaos25.
I'm gonna report your reply. Because obviously you are just trying to get some kind of reaction going on here.

Why dont you please go bother someone else, instead of taking your frustration out on me? I dont need your attitude here. Read the topic.
As you might have noticed, DeathChaos25 is working on a reflect damage plugin already. Because there are no other plugins with just this feature. And the only plugin I could find that had this feature already, were outdated and broken.

Last edited by wendigo; 11-30-2015 at 10:40.
wendigo is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 11-30-2015 , 13:20   Re: l4d2 reflect damage request
Reply With Quote #12

There is nothing wrong with what Jess said. You are over reacting. Another thing is that if you running your own server then you should be able to make small changes to plugins like this.
__________________
Spirit_12 is offline
wendigo
Senior Member
Join Date: Nov 2012
Location: Denmark
Old 11-30-2015 , 15:04   Re: l4d2 reflect damage request
Reply With Quote #13

Quote:
Originally Posted by Spirit_12 View Post
There is nothing wrong with what Jess said. You are over reacting. Another thing is that if you running your own server then you should be able to make small changes to plugins like this.

Why are two people here to turn my topic into an off-topic party? everything was going fine before. DeathChaos25 has been working on the plugin for me, I have been testing it out. I have PM'ed him to make the last final changes.
Then Jess comes out of nowhere telling me (without probably reading OP), that there are other plugins out there that already has this feature.
I only found one and it was outdated and broken. And then telling me in a very patronizing way to use the search function.

DeathChaos25 have made my request plugin.

If you two looking for internet argument discissions, then find other topics and turn those off-topic instead. Like I said DeathChaos25 is on the plugin already. If you want to asist DeathChaos25 with the plugin, then give him a reply or send him a PM.
If you two (mostly jess) are not here to help in any way for the already ongoing forward process with plugin, then stand aside please. You are adding nothing that are helping so far.

Last edited by wendigo; 11-30-2015 at 15:20.
wendigo is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 11-30-2015 , 16:19   Re: l4d2 reflect damage request
Reply With Quote #14

This isn't your personal forum - other people are free to express their opinions and (try to) help.
__________________
asherkin is offline
wendigo
Senior Member
Join Date: Nov 2012
Location: Denmark
Old 11-30-2015 , 17:18   Re: l4d2 reflect damage request
Reply With Quote #15

if only they were trying to help, which they are not. Their opinions just falls to the ground, because the plugin have already been made. I bet they knew that. But they still had to come here and start an pointless discussion.

I guess I'll go spam a few targeted topics with my own opinions, and fill'em up with nonsense.

EDIT: Thanks alot jess. All this mess you have started. Hope you are proud of yourself -.-
Now everyone is coming from all the corners to this topic, talking about all and nothing, despite everything has been under control with the plugin DeathChaos25 created for me.

Last edited by wendigo; 11-30-2015 at 17:23.
wendigo is offline
wendigo
Senior Member
Join Date: Nov 2012
Location: Denmark
Old 12-04-2015 , 17:12   Re: l4d2 reflect damage request
Reply With Quote #16

Quote:
Originally Posted by DeathChaos25 View Post
Here you go;

PHP Code:
#pragma semicolon 1

#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
#define PLUGIN_VERSION "1.0"

/* Plugin Information */
public Plugin:myinfo =  {
    
name "[L4D2] Reflect FF"
    
author "DeathChaos25"
    
description "Reflects FF damage for Survivors"
    
url ""
}

public 
OnClientPutInServer(client)  

    
SDKHook(clientSDKHook_OnTakeDamageOnTakeDamage);


public 
OnAllPluginsLoaded()
{
    for (new 
client 1client <= MaxClientsclient++)
    {
        if (
IsClientInGame(client) && IsSurvivor(client))
        {
            
SDKHook(clientSDKHook_OnTakeDamageOnTakeDamage);
        }
    }
}  

public 
Action:OnTakeDamage(victim, &attacker, &inflictor, &Float:damage, &damagetype, &weaponFloat:damageForce[3], Float:damagePosition[3])

    
//damagetype 8 and 2056 are fire related damage that can be done via molotovs
    
if (!IsSurvivor(victim) || !IsSurvivor(attacker))return Plugin_Continue// only survivor vs survivor dmg
    
if (attacker == victim || damagetype == || damagetype == 2056)return Plugin_Continue// block the plugin from triggering on self damage
    
DealDamage(attackerdamageattackerdamagetype);
    
//PrintToChatAll("dmgtype = %i", damagetype);
    
return Plugin_Handled;


stock bool:IsSurvivor(client)
{
    return 
client && client <= MaxClients && IsClientInGame(client) && GetClientTeam(client) == 2;
}

DealDamage(victim,Float:damage,attacker=0,dmg_type=0,String:weapon[]="")
{
    if(
victim>&& IsValidEdict(victim) && IsClientInGame(victim) && IsPlayerAlive(victim) && damage>0)
    {
        new 
String:dmg_str[16];
        
FloatToString(damage,dmg_str,16);
        new 
String:dmg_type_str[32];
        
IntToString(dmg_type,dmg_type_str,32);
        new 
pointHurt=CreateEntityByName("point_hurt");
        if(
pointHurt)
        {
            
DispatchKeyValue(victim,"targetname","war3_hurtme");
            
DispatchKeyValue(pointHurt,"DamageTarget","war3_hurtme");
            
DispatchKeyValue(pointHurt,"Damage",dmg_str);
            
DispatchKeyValue(pointHurt,"DamageType",dmg_type_str);
            if(!
StrEqual(weapon,""))
            {
                
DispatchKeyValue(pointHurt,"classname",weapon);
            }
            
DispatchSpawn(pointHurt);
            
AcceptEntityInput(pointHurt,"Hurt",(attacker>0)?attacker:-1);
            
DispatchKeyValue(pointHurt,"classname","point_hurt");
            
DispatchKeyValue(victim,"targetname","war3_donthurtme");
            
RemoveEdict(pointHurt);
        }
    }
}

// deal damage source taken from https://forums.alliedmods.net/showthread.php?t=111684 
I've sent you a PM.
wendigo is offline
jess
Member
Join Date: Aug 2015
Location: mb
Old 12-05-2015 , 06:41   Re: l4d2 reflect damage request
Reply With Quote #17

Quote:
Originally Posted by wendigo View Post
You know what? Why dont you take your poor attitude somewhere else girl?
I dont need it in my topic here. Read OP, I did search. Whic hwas the only plugin I could find.

There is not ONE plugin for l4d2, that only offers reflect damage. Which is what is being worked on, thanks to DeathChaos25.
I'm gonna report your reply. Because obviously you are just trying to get some kind of reaction going on here.

Why dont you please go bother someone else, instead of taking your frustration out on me? I dont need your attitude here. Read the topic.
As you might have noticed, DeathChaos25 is working on a reflect damage plugin already. Because there are no other plugins with just this feature. And the only plugin I could find that had this feature already, were outdated and broken.
Sorry, I didn't write my response with any negativity in mind. Dozens of posts like this have been made and someone always responds. Everything about your response was negative. Everyone who has responded was doing so only to help. Instead of attacking other people, maybe you could have taken the time to learn to write a plugin; It would have taken less time to churn it out yourself than attack anyone for not providing a response you were looking for.

By using the search function, as you claimed to have done while screaming at me:
Code:
#define TEAM_SURVIVORS            2

#include <sourcemod>
#include <sdkhooks>

new Handle:h_MitigationCVAR;
new bool:bHasMitigation[MAXPLAYERS + 1];

public OnPluginStart()
{
    h_MitigationCVAR            = CreateConVar("mitigation_time","60","The amount of time, in seconds, after a new player joins, that they can't cause friendly-fire to teammates.");

    AutoExecConfig(true, "ffmit");
}

public OnConfigsExecuted() { AutoExecConfig(true, "ffmit"); }

public OnClientPostAdminCheck(client)
{
    SDKHook(client, SDKHook_OnTakeDamage, OnTakeDamage);
    bHasMitigation[client] = true;
    if (GetConVarInt(h_MitigationCVAR) > 0) CreateTimer(GetConVarInt(h_MitigationCVAR) * 1.0, Timer_AllowFriendlyFire, client, TIMER_FLAG_NO_MAPCHANGE);
}

public OnClientDisconnect(client)
{
    if (IsClientInGame(client))
    {
        bHasMitigation[client] = true;
        SDKUnhook(client, SDKHook_OnTakeDamage, OnTakeDamage);
    }
}

public Action:Timer_AllowFriendlyFire(Handle:timer, any:client)
{
    if (IsClientInGame(client)) bHasMitigation[client] = false;
    return Plugin_Stop;
}

public Action:OnTakeDamage(victim, &attacker, &inflictor, &Float:damage, &damagetype)
{
    if (IsClientInGame(attacker) && GetClientTeam(attacker) == TEAM_SURVIVORS && bHasMitigation[attacker] && IsClientInGame(victim) && GetClientTeam(attacker) == GetClientTeam(victim))
    {
        damage = 0.0;
        return Plugin_Changed;
    }
    return Plugin_Continue;
}

Last edited by jess; 12-05-2015 at 06:44.
jess is offline
wendigo
Senior Member
Join Date: Nov 2012
Location: Denmark
Old 12-05-2015 , 18:50   Re: l4d2 reflect damage request
Reply With Quote #18

I searched in google for:

-l4d2 anti teamkill plugin
-l4d2 anti tk
-l4d2 teamkill plugin

And I only found the plugin I provided a link for in OP. I dont know how else I am suppsoe to search. Unless there is some kind of secret searchign way I am unaware off.

And despite DeathChaos25 already were in the process of making the plugin, people still had afterwards to come and talk about all and nothing, which never helped any bit.
I mean, the plugin he made for me is all on page 1 for crying out loud. But people ignored it, and still decided they wanted an pointless little chitchat.
wendigo is offline
jess
Member
Join Date: Aug 2015
Location: mb
Old 12-05-2015 , 20:31   Re: l4d2 reflect damage request
Reply With Quote #19

We've all provided some sort of input, and there have been multiple outputs. There's zero reason to be rude and disrespectful to anyone here - no one has done anything to deserve such. Multiple versions of reflect and/or mitigation plugins have been provided here, and the discussion threads aren't closed as soon as the OP has received what they're looking for, because part of being an open-source community means that other people may be looking for similar, and be able to contribute in different ways, even beyond the initial scope of a discussion.
jess is offline
wendigo
Senior Member
Join Date: Nov 2012
Location: Denmark
Old 12-06-2015 , 11:40   Re: l4d2 reflect damage request
Reply With Quote #20

Quote:
Originally Posted by jess View Post
We've all provided some sort of input, and there have been multiple outputs. There's zero reason to be rude and disrespectful to anyone here - no one has done anything to deserve such. Multiple versions of reflect and/or mitigation plugins have been provided here, and the discussion threads aren't closed as soon as the OP has received what they're looking for, because part of being an open-source community means that other people may be looking for similar, and be able to contribute in different ways, even beyond the initial scope of a discussion.
You know I could write so much. But I've decided to just not do it.
All I will say is:
DeathChaos25 is in the process of making the plugin. It is all very clear at page 1. I felt that was my only chance, since searching up at google for that long, did not helped one bit.
So this topic was created and DeathChaos25 stepped in and started to help out.

There is nothing more to add to this derailed discussion.
The code you provided I have no clue whatsoever that is, as I know nothing about coding and programming at all. I dont know how much better / worse / differently it is, compared to the one DeathChaos25 has made for me.
wendigo is offline
Reply


Thread Tools
Display Modes

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 08:25.


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