Raised This Month: $ Target: $400
 0% 

[TF2] Force roundwin on flag capture(MvM Bomb)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Michalplyoutube
Veteran Member
Join Date: Jan 2013
Location: Tank Carrier in Mannhatt
Old 08-02-2014 , 10:49   [TF2] Force roundwin on flag capture(MvM Bomb)
Reply With Quote #1

title says
Michalplyoutube is offline
Oshizu
Veteran Member
Join Date: Nov 2012
Location: Warsaw
Old 08-02-2014 , 11:03   Re: [TF2] Force roundwin on flag capture(MvM Bomb)
Reply With Quote #2

Hi,

Here's some stuff, not sure if it will work or not, needs to be tested:
PHP Code:
#include <sdktools>

public OnPluginStart()
{
    
SetCommandFlags("mp_forcewin" ,GetCommandFlags("mp_forcewin")^FCVAR_CHEAT)
    
HookEntityOutput("item_teamflag""OnPickup"OnFlagPickedUp)
}

public 
OnFlagPickedUp(const String:output[], calleractivatorFloat:delay)
{
    
ServerCommand("mp_forcewin 2"// Choose which team should win after flag has been picked up:
    // 2 - Red
    // 3 - Blue
    // 0 - Draw

__________________
...

Last edited by Oshizu; 08-02-2014 at 11:04.
Oshizu is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 08-02-2014 , 13:08   Re: [TF2] Force roundwin on flag capture(MvM Bomb)
Reply With Quote #3

The bots pick up the flag when they spawn... Usually its in a small area, so this wont work,
Aldo you shouldn't servercommand like that. Just create a tcpm entity and send it the appropriate input to end the round.

This event should happen anyways, as its part of the flag capture logic in mvm maps.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram 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 19:15.


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