AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   AFK Bomb Transfer v0.4 (https://forums.alliedmods.net/showthread.php?t=24364)

VEN 02-20-2006 10:43

AFK Bomb Transfer v0.4
 
1 Attachment(s)
        • 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

VEN 02-20-2006 10:50

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.

Brad 02-20-2006 11:06

There's also already a "steal bomb" plugin.

VEN 02-20-2006 11:06

True, that's two different plugin: manual way and automatical way.
Actions of this plugin is absolutely automated.

Janet Jackson 02-20-2006 12:09

Re: AFK Bomb Transfer
 
Quote:

Originally Posted by VEN
Bomb transfered to "NEW_CARRIER_NAME"

typo -> transferred

Nice idea, very useful.

badboyz 02-20-2006 12:15

good job

Brad 02-20-2006 12:24

Re: AFK Bomb Transfer
 
Quote:

Originally Posted by VEN
You got the bomb!

Can you read that? Try using a color that actually contrasts better with the background. :)

Deviance 02-20-2006 12:27

nice plugin man, but i think i pass. If i had this one then i dont have an reason to have mp_friendlyfire 1 :P :roll: :roll: :roll:

VEN 02-20-2006 13:00

[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. :)

Brad 02-20-2006 13:07

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.


All times are GMT -4. The time now is 15:45.

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