Raised This Month: $32 Target: $400
 8% 

[CS:S] Improved Bomb Events


Post New Thread Reply   
 
Thread Tools Display Modes
talpa
Member
Join Date: Jun 2007
Old 07-30-2011 , 16:47   Re: [CS:S] Improved Bomb Events
Reply With Quote #21

"bomb_exploded"
{
"enabled" "yes"
"message" "%s succeeded to explode the bomb!"
"messageType" "7"
"sound" "quake/eco/nuke3.wav"
}

not work sound is dowloaded but no work sounds ....
talpa is offline
krzynek1
Member
Join Date: Jan 2009
Old 10-29-2011 , 05:03   Re: [CS:S] Improved Bomb Events
Reply With Quote #22

hello, is there any person who is willing to add that code to this plugin ?

Code:
new g_BombsiteA = -1; 
new g_BombsiteB = -1; 

GetBomsitesIndexes() 
{ 
    new index = -1; 
     
    new Float:vecBombsiteCenterA[3]; 
    new Float:vecBombsiteCenterB[3]; 
     
    index = FindEntityByClassname(index, "cs_player_manager"); 
    if (index != -1) 
    { 
        GetEntPropVector(index, Prop_Send, "m_bombsiteCenterA", vecBombsiteCenterA); 
        GetEntPropVector(index, Prop_Send, "m_bombsiteCenterB", vecBombsiteCenterB); 
    } 
     
    index = -1; 
    while ((index = FindEntityByClassname(index, "func_bomb_target")) != -1) 
    { 
        new Float:vecBombsiteMin[3]; 
        new Float:vecBombsiteMax[3]; 
         
        GetEntPropVector(index, Prop_Send, "m_vecMins", vecBombsiteMin); 
        GetEntPropVector(index, Prop_Send, "m_vecMaxs", vecBombsiteMax); 
         
        if (IsVecBetween(vecBombsiteCenterA, vecBombsiteMin, vecBombsiteMax)) 
        { 
            g_BombsiteA = index; 
        } 
        else if (IsVecBetween(vecBombsiteCenterB, vecBombsiteMin, vecBombsiteMax)) 
        { 
            g_BombsiteB = index; 
        } 
    } 
} 

stock bool:IsVecBetween(const Float:vecVector[3], const Float:vecMin[3], const Float:vecMax[3]) 
{ 
    return ( (vecMin[0] <= vecVector[0] <= vecMax[0]) && 
             (vecMin[1] <= vecVector[1] <= vecMax[1]) && 
             (vecMin[2] <= vecVector[2] <= vecMax[2])    ); 
}  
code is from http://forums.alliedmods.net/showthread.php?p=1287116

what i trying to do is to get information about where the bomb is planted
krzynek1 is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 10-29-2011 , 08:56   Re: [CS:S] Improved Bomb Events
Reply With Quote #23

And how would you want to use that information later?
Seta00 is offline
krzynek1
Member
Join Date: Jan 2009
Old 10-29-2011 , 11:20   Re: [CS:S] Improved Bomb Events
Reply With Quote #24

with this information i want tell players where the bomb is planted

so instead of :

Code:
    "bomb_planted"
    {
        "enabled"        "yes"
        "message"        "%s planted the bomb!"
        "messageType"    "7"
        "sound"            "quake/perfect.mp3"
    }
i wish i could :

Code:
   "bomb_planted"
    {
        "enabled"        "yes"
        "message"        "%s planted the bomb on bombsitex"
        "messageType"    "7"
        "sound"            "quake/perfect.mp3"
    }

Last edited by krzynek1; 10-29-2011 at 11:21.
krzynek1 is offline
banania
Member
Join Date: Feb 2011
Old 12-20-2011 , 18:40   Re: [CS:S] Improved Bomb Events
Reply With Quote #25

Hello,

In my case, the script does not work, yet it is executed by the server but no message appears and no sound is played
banania is offline
banania
Member
Join Date: Feb 2011
Old 12-27-2011 , 15:18   Re: [CS:S] Improved Bomb Events
Reply With Quote #26

Nobody can help me ?
banania is offline
samsah
AlliedModders Donor
Join Date: Mar 2008
Location: Finland
Old 05-19-2013 , 06:03   Re: [CS:S] Improved Bomb Events
Reply With Quote #27

Code:
L 05/19/2013 - 12:50:06: [SM] Native "PrintHintText" reported: Client index 0 is invalid
L 05/19/2013 - 12:50:06: [SM] Displaying call stack trace for plugin "ImprovedBombEvents.smx":
L 05/19/2013 - 12:50:06: [SM]   [0]  Line 163, /home/groups/alliedmodders/forums/files/6/7/2/8/9/84809.attach::OnBombEvent()
Someone willing to fix this? Would be super
__________________
samsah is offline
samsah
AlliedModders Donor
Join Date: Mar 2008
Location: Finland
Old 05-27-2013 , 03:18   Re: [CS:S] Improved Bomb Events
Reply With Quote #28

Quote:
Originally Posted by samsah View Post
Code:
L 05/19/2013 - 12:50:06: [SM] Native "PrintHintText" reported: Client index 0 is invalid
L 05/19/2013 - 12:50:06: [SM] Displaying call stack trace for plugin "ImprovedBombEvents.smx":
L 05/19/2013 - 12:50:06: [SM]   [0]  Line 163, /home/groups/alliedmodders/forums/files/6/7/2/8/9/84809.attach::OnBombEvent()
Someone willing to fix this? Would be super
Anyone?
__________________
samsah 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 21:39.


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