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

Block Bomb/Flag Pickup & Admin Flag


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 11-25-2015 , 21:51   Block Bomb/Flag Pickup & Admin Flag
Reply With Quote #1

Is there an SM-way to prevent MvM robots from picking up the bomb flag?

Specifically, if they touch it, it should not count as "picked up". They should just be walking through or on top of it. I tried doing shit like this:

PHP Code:
public void OnMapStart()
{
    
Bomb FindEntityByClassname(-1"item_teamflag");
    
SDKHook(BombSDKHook_StartTouchOnBombTouch);
}

public 
Action OnBombTouch(int iEntityint iClient)
{
    if (!
IsValidClient(iClient))
        return 
Plugin_Continue;
    return 
Plugin_Handled;

No success.

My second irrelevant question is: If a player holds any admin flag but reserved slots, do they by default also hold ADMFLAG_GENERIC? (So like kick, ban, cheats, custom1-6, etc.)

My third irrelevant question is: What do I pass into FakeClientCommand() in order to make a client drop the intel? (EDIT: Looks like it is "dropitem".)

Thanks!

Last edited by Potato Uno; 11-25-2015 at 21:55.
Potato Uno is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 11-25-2015 , 21:58   Re: Block Bomb/Flag Pickup & Admin Flag
Reply With Quote #2

PHP Code:
SDKHook(BombSDKHook_StartTouchOnBombTouch); 
Add a line under that.

PHP Code:
SDKHook(BombSDKHook_StartTouchOnBombTouch);
SDKHook(BombSDKHook_TouchOnBombTouch); 
If it still doesn't work, try verifying that your IsValidClient function is treating bots properly.

All flags are independent of all other flags. A client with ADMFLAG_CHEATS will not necessarily have ADMFLAG_GENERIC. This even somewhat applies to the ADMFLAG_ROOT; using CheckCommandAccess will respect root, but manually checking the flag bits will not.
__________________

Last edited by ddhoward; 11-25-2015 at 22:02.
ddhoward is offline
Michalplyoutube
Veteran Member
Join Date: Jan 2013
Location: Tank Carrier in Mannhatt
Old 12-20-2015 , 14:57   Re: Block Bomb/Flag Pickup & Admin Flag
Reply With Quote #3

Theres attrib 400 cannot pick up intelligence for that also you can input forcedrop on the flag
__________________
The plugin developer of TF2BWR Reborn
And a TF2 Player
Michalplyoutube 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:14.


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