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

Bomb Beacon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TCB_WyattEarp
Member
Join Date: Sep 2013
Old 04-18-2019 , 09:53   Bomb Beacon
Reply With Quote #1

Can someone make a plugin:

When the bomb is dropped, it will have a beacon that shoots into the sky...
Some players seem to have trouble locating the dropped bomb.

I would be open to anything that will help them locate the bomb

beacon - Arrow - just something that says HEY HERE I AM
TCB_WyattEarp is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-18-2019 , 09:57   Re: Bomb Beacon
Reply With Quote #2

Haven't they heard about the radar?...
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
TCB_WyattEarp
Member
Join Date: Sep 2013
Old 04-18-2019 , 10:07   Re: Bomb Beacon
Reply With Quote #3

Yes
I have a plugin on the server that shows the bombsites on the radar -
When the bomb is dropped, there are 3 red dots on the radar
One for each site and one for the bomb...
It would be nice if that plugin could be modified to change the color of the red dot for the bomb to another color as well
TCB_WyattEarp is offline
TCB_WyattEarp
Member
Join Date: Sep 2013
Old 04-18-2019 , 11:25   Re: Bomb Beacon
Reply With Quote #4

Xpaw created this but it doesnt seem to work:

PHP Code:
#include < amxmodx >
#include < engine >
#include < fakemeta >

new const SOUND[ ] = "buttons/blip1.wav";

enum _:BeaconTypes {
    
Beacon_Dropped,
    
Beacon_Planted
};

new 
g_pCvarg_pSound;
new 
g_iSprite;

public 
plugin_init( ) {
    
register_plugin"Bomb Beacon""1.0""xPaw" );
    
    
g_pCvar  register_cvar"bb_enabled""3" ); // 0 - Dropped | 1 - Planted | 2 - Both
    
g_pSound register_cvar"bb_sound",   "0" );
    
    if( !
find_ent_by_classFM_NULLENT"func_bomb_target" )
    &&  !
find_ent_by_classFM_NULLENT"info_bomb_target" ) )
        
pause"a" );
    
    
register_logevent"BombDropped"3"2=Dropped_The_Bomb" );
    
register_logevent"BombPlanted"3"2=Planted_The_Bomb" );
}

public 
plugin_precache( ) {
    
g_iSprite precache_model"sprites/laserbeam.spr" );
    
    
precache_soundSOUND );
}

public 
BombDropped( )
    if( 
IsEnabledBeacon_Dropped ) )
        
set_task1.0"FindBomb" );

public 
FindBomb( )
    
ShowBeaconfind_ent_by_modelFM_NULLENT"weaponbox""models/w_backpack.mdl" ) );

public 
BombPlanted( ) {
    if( 
IsEnabledBeacon_Planted ) ) {
        new 
iBomb find_ent_by_modelFM_NULLENT"grenade""models/w_c4.mdl" );
        
        if( 
iBomb )
            
set_task1.0"ShowBeacon"iBomb );
    }
}

public 
ShowBeacon( const iEntity ) {
    if( !
is_valid_entiEntity ) )
        return;
    
    
set_task2.0"ShowBeacon"iEntity );
    
    if( 
get_pcvar_numg_pSound ) )
        
emit_soundiEntityCHAN_ITEMSOUND1.0ATTN_NORM0PITCH_NORM );
    
    new 
Float:vOrigin];
    
entity_get_vectoriEntityEV_VEC_originvOrigin );
    
    
message_beginMSG_BROADCASTSVC_TEMPENTITY );
    
write_byteTE_BEAMCYLINDER );
    
engfuncEngFunc_WriteCoordvOrigin] );
    
engfuncEngFunc_WriteCoordvOrigin] );
    
engfuncEngFunc_WriteCoordvOrigin] );
    
engfuncEngFunc_WriteCoordvOrigin] );
    
engfuncEngFunc_WriteCoordvOrigin] );
    
engfuncEngFunc_WriteCoordvOrigin] + 100 );
    
write_shortg_iSprite );
    
write_byte);
    
write_byte);
    
write_byte);
    
write_byte);
    
write_byte);
    
write_byte255 );
    
write_byte);
    
write_byte);
    
write_byte200 );
    
write_byte);
    
message_end( );
}

bool:IsEnabled( const iType ) {
    new 
iCvar get_pcvar_numg_pCvar );
    
    return 
bool:( iCvar iType );

TCB_WyattEarp is offline
SomewhereLost
AlliedModders Donor
Join Date: Mar 2014
Location: Tomorrowland
Old 04-18-2019 , 12:02   Re: Bomb Beacon
Reply With Quote #5

Try to play with the cvar, set 1 or 2.
__________________
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
TCB_WyattEarp
Member
Join Date: Sep 2013
Old 04-18-2019 , 12:15   Re: Bomb Beacon
Reply With Quote #6

I have tried all cvar settings and nothing
TCB_WyattEarp is offline
TCB_WyattEarp
Member
Join Date: Sep 2013
Old 04-19-2019 , 17:51   Re: Bomb Beacon
Reply With Quote #7

anyone have an idea why this isnt working ?
TCB_WyattEarp is offline
thEsp
BANNED
Join Date: Aug 2017
Old 04-19-2019 , 18:42   Re: Bomb Beacon
Reply With Quote #8

PHP Code:
    message_beginMSG_BROADCASTSVC_TEMPENTITY ); 
    
write_byteTE_BEAMCYLINDER ); 
    
engfuncEngFunc_WriteCoordvOrigin] ); 
    
engfuncEngFunc_WriteCoordvOrigin] ); 
    
engfuncEngFunc_WriteCoordvOrigin] ); 
    
engfuncEngFunc_WriteCoordvOrigin] ); 
    
engfuncEngFunc_WriteCoordvOrigin] ); 
    
engfuncEngFunc_WriteCoordvOrigin] + 100 ); 
    
write_shortg_iSprite ); 
    
write_byte); 
    
write_byte); 
    
write_byte); 
    
write_byte); 
    
write_byte); 
    
write_byte255 ); // RED
    
write_byte);  // GREEN
    
write_byte); // BLUE
    
write_byte200 ); 
    
write_byte); 
    
message_end( ); 
Try changing highlighted values (r,g,b) and see if anything changed/
thEsp 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 13:33.


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