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

Bomb Countdown HUD Timer


Post New Thread Reply   
 
Thread Tools Display Modes
Skissors
Senior Member
Join Date: Jan 2007
Location: Due East of my backyard
Old 02-22-2007 , 08:56   Re: Bomb CountHUD Timer
Reply With Quote #21

very goodjob, i remember this being one of the most useful things in a hack that i used long ago (besides the aimbot)
__________________
-Karma if you read this post
current karma i lost track but its less than -70
please leave your name, I wont be offended.

IM BACK
Skissors is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-03-2007 , 09:27   Re: Bomb CountHUD Timer
Reply With Quote #22

Unapproved due to some weird coding (as Emp pointed out). If you fix it, PM me, another approver, or just post here and we'll reconsider.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
SAMURAI16
BANNED
Join Date: Sep 2006
Old 03-03-2007 , 09:40   Re: Bomb CountHUD Timer
Reply With Quote #23

-updated, see now
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
SAMURAI16
BANNED
Join Date: Sep 2006
Old 03-03-2007 , 14:57   Re: Bomb CountHUD Timer
Reply With Quote #24

Update 0.1 -> 0.2
- Fixed Events problems
- Pcvars
- Fixed any bug on plugin
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 03-04-2007 , 03:35   Re: Bomb CountHUD Timer
Reply With Quote #25

Gj SAMURAI! Now it's working very well!
*Before update,the bomb explode at 1 sec left! Now at 0
*Before update,when you shoot the las person alive and the bomb is planted C4 count go -1,-2,-3! Now it stop.. ;)
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 03-04-2007 , 03:36   Re: Bomb CountHUD Timer
Reply With Quote #26

good thanks again for tests
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
Impaler
Member
Join Date: Jun 2007
Location: Twin Peaks, Netherealm
Old 11-03-2007 , 08:11   Re: Bomb Countdown HUD Timer
Reply With Quote #27

i'll be next to test this out and cutomize it a little ;)

also guys, does any of you know how to customize the placement of c4 text?

for example i want it in the top left corner of the screen instead of the middle?

nevermind i've figured it out and customized it to appear below the radar great job, SAMURAJ

Last edited by Impaler; 11-03-2007 at 12:00.
Impaler is offline
Old 11-16-2007, 07:38
u-bot
This message has been deleted by u-bot.
u-bot
Junior Member
Join Date: Nov 2007
Location: PL
Old 11-16-2007 , 07:59   Re: Bomb Countdown HUD Timer
Reply With Quote #28

OK, it's work, but c4timer and HUD message, are different
u-bot is offline
Old 12-11-2007, 06:42
IneedHelp
This message has been deleted by IneedHelp.
tabularasa
Member
Join Date: Dec 2006
Location: Hannover/Germany
Old 12-15-2007 , 13:17   Re: Bomb Countdown HUD Timer
Reply With Quote #29

The HUD Timer is running faster than the real timer. So if the c4timer is more than 40 sec the HUD message counts faster to 0 as the bomb is ticking. How can i fix this?
tabularasa is offline
Send a message via ICQ to tabularasa
Impaler
Member
Join Date: Jun 2007
Location: Twin Peaks, Netherealm
Old 03-01-2008 , 09:46   Re: Bomb Countdown HUD Timer
Reply With Quote #30

Here is my modification for the text positioning. IMHO having text in the middle is quite disturbing. So I moved it nicely. Look at screens below.



PHP Code:
/* 
 Bomb Countdown HUD Timer v0.2 by SAMURAI

    * Plugin Details
 With this plugin enabled, you can see an colored Hud Message with the c4 time left, until explode
  Remeber : if until explode remains less than 8 seconds, hudmessage color will be red, if > 7 will be yellow and > 13 will be green.

    * Required Modules:
 - CSX
 
        * Credits:
- Emp` for various indicates
- Alka for full tests
- Impaler for positioning the text :P

    * Changelog
 - Fixed Events problems
 - Pcvars
 - Fixed any bug on plugin

*/


#include <amxmodx>
#include <csx>
 
#define PLUGIN "Bomb Countdown HUD Timer"
#define VERSION "0.2"
#define AUTHOR "SAMURAI" 
 
new g_c4timerpointnum;
new 
bool:b_planted false;

new 
g_msgsync;
 
 
public 
plugin_init()
{
    
register_plugin(PLUGIN,VERSION,AUTHOR);
 
    
pointnum get_cvar_pointer("mp_c4timer");
 
    
register_logevent("newRound"2"1=Round_Start");
    
register_logevent("endRound"2"1=Round_End");
    
register_logevent("endRound"2"1&Restart_Round_");
 
    
g_msgsync CreateHudSyncObj();
}
 
public 
newRound()
{
    
g_c4timer = -1;
    
remove_task(652450);
    
b_planted false;
}
 
public 
endRound()
{
    
g_c4timer = -1;
    
remove_task(652450);
}
 
public 
bomb_planted()
{
    
b_planted true;
    
g_c4timer get_pcvar_num(pointnum);
    
dispTime()
    
set_task(1.0"dispTime"652450""0"b");
}
 
public 
bomb_defused()
{
    if(
b_planted)
    {
        
remove_task(652450);
        
b_planted false;
    }
    
}
 
public 
bomb_explode()
{
    if(
b_planted)
    {
        
remove_task(652450);
        
b_planted false;
    }
    
}
 
public 
dispTime()
{   
    if(!
b_planted)
    {
        
remove_task(652450);
        return;
    }
        
 
    if(
g_c4timer >= 0)
    {
        if(
g_c4timer 13set_hudmessage(01500, -0.960.19501.01.00.010.01, -1);
        else if(
g_c4timer 7set_hudmessage(1501500, -0.960.19501.01.00.010.01, -1);
        else 
set_hudmessage(15000, -0.960.19501.01.00.010.01, -1);
 
        
ShowSyncHudMsg(0g_msgsync"C4: %d"g_c4timer);
 
        --
g_c4timer;
    }
  

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/ 
Impaler 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 07:37.


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