Raised This Month: $ Target: $400
 0% 

[SOLVED] TFC - Forcing a flag drop on dustbowl style maps


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SpannerSpammer
Member
Join Date: Mar 2006
Old 11-22-2016 , 01:25   Re: [WORKED AROUND] TFC - Forcing a flag drop on dustbowl style maps
Reply With Quote #5

(Ignoring OciXCrom's idiotic Faux Pas. PLEASE READ before you WRITE Dude.)

1. You cannot make a Player drop an undroppable flag in TFC.
You can tell if a flag is droppable by recording the Goal Activation
Key/Value (g_a or goal_activation). If the setting
contains bits 4096, then it can be dropped, if not, then it can't.
Use this to check if the flag can be dropped before you try to
force a bot to use the dropitems command.

2. You can return a flag that a player is currently carrying.
This is done by creating an info_tfgoal that uses some of
the Key/value data as the the flag's corresponding cap point
(i.e. the i_t_g entity, a brush based version of the info_tfgoal).
Force the Player to use or touch this info_tfgoal and the flag will
be returned, provided that you use the right Key/value settings.

However, this is completely impractical from a coding point of view
since you would need to know the entity setup for ALL the flags
and their corresponding cap points for EACH map AND you would
have to configure a way to collect this data and apply it towards
creating the correct Key/value settings required. I'm not saying
that this can't be done, I'm saying that it's just impractical.

3. Your best bet is to simply block the flag touch for bots on
dustbow-style maps. Do it something like this:

I. Use an .ini configuration file, in this file a server op can place
the names of the specified dustbowl-type maps on his server.

II. At map start, your plugin reads the entries form the file and
if the current map is found then enable flag touch checking,
use this possibly in conjunctioin with a CVAR.

III. Use a fakemeta or hamsandwich touch function and disable
the touch (return *_SUPERCEDE) if a bot touches the flag
AND there are human players on it's team.
__________________
[NeoTF|DEV]SpannerSpammer-[AoE]-
NeoTF Development Team.
http://steamcommunity.com/groups/neotf
SpannerSpammer is offline
 



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 06:57.


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