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

AFK Bomb Transfer v0.4


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Brad (55)
VEN
Veteran Member
Join Date: Jan 2005
Old 02-20-2006 , 10:43   AFK Bomb Transfer v0.4
Reply With Quote #1

        • AFK Bomb Transfer
Description
  • Plugin allow transfer bomb from AFK terrorist to closest non-AFK teammate.
    Plugin will have no effect:
    • - at the freezetime
      - if bomb is planting
      - on non-bomb maps (comment #define BOMB_MAP_CHECK to suppress)
Modules
  • fakemeta
CVARs
  • afk_bombtransfer_spawn (N: seconds, default: 7) - max. allowed bomb carrier AFK time
    • affects on spawned AFK bomb carrier which never moved after spawn
    afk_bombtransfer_time (N: seconds, default: 15) - max. allowed bomb carrier AFK time
    • affects on any AFK bomb carrier except one which obey previous CVAR
HUD Messages
  • Terrorist team (green color)
    • Bomb transferred to "NEW_CARRIER_NAME"
      since "AFK_CARRIER_NAME" is AFK
    New bomb carrier (yellow color)
    • You got the bomb!
    Note: by defult message display time is 7 seconds (define MSG_TIME)
Versions
  • 0.4
    • backpack transfer method greatly improved
      added pcvar natives support (backward compatibility saved)
      few code optimization
    0.3
    • now fakemeta instead of engine required (efficiency++ if engine is disabled)
      "non-bomb map" check can be disabled (//#define BOMB_MAP_CHECK)
      backpack finding method improved
      few code optimization
      added comments to the plugin source code
    0.2
    • fixed format issue
      code optimized
      description improved
    0.1
    • first release
Attached Files
File Type: sma Get Plugin or Get Source (afkbombtransfer.sma - 40795 views - 7.4 KB)
VEN is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 02-20-2006 , 10:50  
Reply With Quote #2

I know there are "AFK Bomb" plugin. But in my opinion it's seems pointless if you just drop bomb since usually no one is close to AFK player especially if he stays on the spawn point.
VEN is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 02-20-2006 , 11:06  
Reply With Quote #3

There's also already a "steal bomb" plugin.
Brad is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 02-20-2006 , 11:06  
Reply With Quote #4

True, that's two different plugin: manual way and automatical way.
Actions of this plugin is absolutely automated.
VEN is offline
Janet Jackson
Veteran Member
Join Date: Mar 2005
Location: far, far away from here
Old 02-20-2006 , 12:09   Re: AFK Bomb Transfer
Reply With Quote #5

Quote:
Originally Posted by VEN
Bomb transfered to "NEW_CARRIER_NAME"
typo -> transferred

Nice idea, very useful.
__________________
Janet Jackson is offline
badboyz
Member
Join Date: Dec 2005
Location: East Brunswick NJ
Old 02-20-2006 , 12:15  
Reply With Quote #6

good job
__________________

Warcraft3 FT -=oG=- Clan
69.248.82.68:27016

-=oG=- Normal Server ~Tryout~
69.248.82.68:27023
-=oG=- Clan Website
badboyz is offline
Send a message via AIM to badboyz Send a message via MSN to badboyz
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 02-20-2006 , 12:24   Re: AFK Bomb Transfer
Reply With Quote #7

Quote:
Originally Posted by VEN
You got the bomb!
Can you read that? Try using a color that actually contrasts better with the background.
Brad is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 02-20-2006 , 12:27  
Reply With Quote #8

nice plugin man, but i think i pass. If i had this one then i dont have an reason to have mp_friendlyfire 1
Deviance is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 02-20-2006 , 13:00  
Reply With Quote #9

[EDIT]

Description updated:

Plugin have no effect:
  • - at the freezetime
    - at the time when bomb is planting
    - on non-bomb maps
[/EDIT]

Quote:
Originally Posted by Janet Jackson
Quote:
Originally Posted by VEN
Bomb transfered to "NEW_CARRIER_NAME"
typo -> transferred

Nice idea, very useful.
Fixed, thank you.

Quote:
Originally Posted by Brad
Quote:
Originally Posted by VEN
You got the bomb!
Can you read that? Try using a color that actually contrasts better with the background. :)
Yes, i know it's non-readable here but in game it looks much better (better than green, red, blue and i guess any other color except white).
Maybe better make it black or something and then put a note "(yellow color)"?
I wanted make self-explanatory description but background not on my side. :)
VEN is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 02-20-2006 , 13:07  
Reply With Quote #10

Non-Obligatory Code Suggestions by Brad ™
  1. I really recommend you read these specific optimization tips and apply them liberally throughout your code.
  2. I strongly recommend you put all the user displayed text into a language file. Language files are not used just to have translations for one's default phrases but also to allow people to change the English wording of the default phrases if they'd like without having to recompile the plugin. File this under "Best Practices".
  3. Any defines you have that could be converted to CVARs, are arguably more useful to the end user as CVARs than defines.
  4. If you can find a way to use fakemeta instead of engine, that'd be a bonus as many people would rather not enable engine.
Brad 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 06:25.


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