Raised This Month: $ Target: $400
 0% 

No C4 crash


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-20-2015 , 14:57   Re: No C4 crash
Reply With Quote #4

Delete func_bomb_target & info_bomb_target entities, bomb won't be given again. When RestartRound is called there is a check for m_bMapHasBombTarget. If true GiveC4 is called, otherwise no one get the bomb. m_bMapHasBombTarget is filled like:
PHP Code:
if (UTIL_FindEntityByClassname(NULL"func_bomb_target") != NULL)
    {
        
m_bMapHasBombTarget true;
        
m_bMapHasBombZone   true;
    }
    else if (
UTIL_FindEntityByClassname(NULL"info_bomb_target") != NULL)
    {
        
m_bMapHasBombTarget true;
        
m_bMapHasBombZone   false;
    }
    else
    {
        
m_bMapHasBombTarget false;
        
m_bMapHasBombZone   false;
    } 
So you see, removing them make the trick.
__________________

Last edited by HamletEagle; 09-20-2015 at 14:58.
HamletEagle 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 22:06.


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