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

WhoBangedMe?: Source!


Post New Thread Reply   
 
Thread Tools Display Modes
doa
Member
Join Date: Nov 2007
Old 11-12-2007 , 09:22   Re: WhoBangedMe?: Source!
Reply With Quote #31

I think this is a great plugin and I am sure it will reduce alot of teamflash!
But... it's not working..
Looks like the last person that was touched by the flash will become the "owner" of the flash and will be accused of teamflashing.
doa is offline
GriMz
Senior Member
Join Date: Jul 2007
Old 11-19-2007 , 05:14   Re: WhoBangedMe?: Source!
Reply With Quote #32

Quote:
Originally Posted by Shaman View Post
Don't forget to use the new translation file. Plugin counts and displays warnings. If the limit is reached (defined by a ConVar) the player will be slain. I will add kick option later.
and what is the convar? you never explained that.

this is slaying the wrong ppl
maybe disable the autoslay?
__________________
GriMz is offline
Shaman
Senior Member
Join Date: Dec 2006
Location: Istanbul, Turkey
Old 11-27-2007 , 11:26   Re: WhoBangedMe?: Source!
Reply With Quote #33

I can't find the problem! I tried with bots and it works right. Maybe real players cause this problem. I will update my installation and check if I can do something else.

Edit:
You can disable punishment by setting "whobangedmesource_tmbanglimit" to "0".
__________________

Last edited by Shaman; 11-27-2007 at 11:31.
Shaman is offline
Send a message via ICQ to Shaman Send a message via AIM to Shaman Send a message via MSN to Shaman Send a message via Yahoo to Shaman
doa
Member
Join Date: Nov 2007
Old 11-27-2007 , 18:25   Re: WhoBangedMe?: Source!
Reply With Quote #34

Quote:
Originally Posted by Shaman View Post
I can't find the problem! I tried with bots and it works right. Maybe real players cause this problem. I will update my installation and check if I can do something else.
Yeah, works fine on bots. I tried it out using bots as well, but it banged out big time when used with non-bots.
Hope you manage to sort it out man, this will be a great plugin if it works!
doa is offline
Grrrrrrrrrrrrrrrrrrr
Senior Member
Join Date: Oct 2007
Old 12-03-2007 , 16:37   Re: WhoBangedMe?: Source!
Reply With Quote #35

Try the following steps:

1. flashbang_detonate gives you the origin. So, save the origin and the player who the flash bang belongs to. (e.g. lastbanger , lastbangerorigin)

2. Now, there must be some kind of max distance for looking at a flashbang's flash. I think its "m_fadeMaxDist" from "CFlashbang." So, you should find this value before the flash bang detonates.

3. when a player is blinded check the distance between the player's origin and the flashbang_detonate origin. And, if the distance is below "m_fadeMaxDist" give credit.

Please tell me if it works.
__________________
Note: "r" letters = 19 ; CHEESE: I LIKE CHOCOLATE MILK

Last edited by Grrrrrrrrrrrrrrrrrrr; 12-03-2007 at 16:49.
Grrrrrrrrrrrrrrrrrrr is offline
Send a message via AIM to Grrrrrrrrrrrrrrrrrrr
Shaman
Senior Member
Join Date: Dec 2006
Location: Istanbul, Turkey
Old 12-04-2007 , 08:12   Re: WhoBangedMe?: Source!
Reply With Quote #36

What about walls?
__________________
Shaman is offline
Send a message via ICQ to Shaman Send a message via AIM to Shaman Send a message via MSN to Shaman Send a message via Yahoo to Shaman
Grrrrrrrrrrrrrrrrrrr
Senior Member
Join Date: Oct 2007
Old 12-04-2007 , 20:01   Re: WhoBangedMe?: Source!
Reply With Quote #37

This is the same thing as your original version with a small add on. Now it checks to make sure the player is with in the max distance of the flash bang flash.

Still, the is only a temporary solution. There must be a better way.
__________________
Note: "r" letters = 19 ; CHEESE: I LIKE CHOCOLATE MILK
Grrrrrrrrrrrrrrrrrrr is offline
Send a message via AIM to Grrrrrrrrrrrrrrrrrrr
Shaman
Senior Member
Join Date: Dec 2006
Location: Istanbul, Turkey
Old 12-06-2007 , 14:07   Re: WhoBangedMe?: Source!
Reply With Quote #38

Maybe I can try to get entity index of the throwed and exploaded flashbang and do this:
Code:
OnThrow
 {
 if(fbangs[entityindex]==0)
  {
  fbangs[entityindex]= thrower
  }
 }
OnExplode
 {
 thrower= fbangs[entityindex]
 fbangs[entityindex]= 0
 }
But, how can I get the index of the flashbang in "OnThrow" and "OnExplode"?
__________________
Shaman is offline
Send a message via ICQ to Shaman Send a message via AIM to Shaman Send a message via MSN to Shaman Send a message via Yahoo to Shaman
Grrrrrrrrrrrrrrrrrrr
Senior Member
Join Date: Oct 2007
Old 12-07-2007 , 14:38   Re: WhoBangedMe?: Source!
Reply With Quote #39

I do not fully understand what you are trying to do. From what I understand about what you said, your plan doesn't really make sense.

Anyways, this is what your trying to do:
Code:
public Event_Fire(Handle:event, const String:name[], bool:dontBroadcast)
{
    new clientId = GetEventInt(event, "userid")
    new client = GetClientOfUserId(clientId)
    
    new String:weapon[30]
    GetEventString(event, "weapon", weapon, sizeof(weapon))
    
    if (!StrEqual(weapon,"flashbang"))
        return
    
    CreateTimer(0.1, timer, client)
}

public Action:timer(Handle:timer, any:client)
{
    new ent = -1
    new lastent
    new owner
    
    ent = FindEntityByClassname(ent, "hegrenade_projectile")
    
    while (ent != -1)
    {
        owner = GetEntPropEnt(ent, Prop_Send, "m_hThrower")
        
        if (IsValidEntity(ent) && owner == client)
            break
    
        ent = FindEntityByClassname(ent, "hegrenade_projectile")
        
        if (ent == lastent)
        {
            ent = -1
            break
        }
        
        lastent = ent
    }
    
    if (ent != -1)
    {
        fbangs[ent] = client
    }
}
* say thanks to pRED*.
__________________
Note: "r" letters = 19 ; CHEESE: I LIKE CHOCOLATE MILK

Last edited by Grrrrrrrrrrrrrrrrrrr; 12-07-2007 at 23:24.
Grrrrrrrrrrrrrrrrrrr is offline
Send a message via AIM to Grrrrrrrrrrrrrrrrrrr
Bloodlvst
Senior Member
Join Date: Jul 2007
Old 12-07-2007 , 14:43   Re: WhoBangedMe?: Source!
Reply With Quote #40

Grrrrrrrrrrrrrrrrrrr Are you saying that the new code works? If so, SEX ME PLZ! vbmenu_register("postmenu_560880", true);
__________________
Quote:
skywalker: I have cs source client 5 how to upgrade to client 7
BAILOPAN: oh
Bloodlvst 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 23:56.


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