Raised This Month: $ Target: $400
 0% 

block round on defuse or explode bomb


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
avril-lavigne
Banned
Join Date: Apr 2009
Old 01-12-2014 , 10:13   block round on defuse or explode bomb
Reply With Quote #1

How to block round without orpheu when bomb is defused or xploded ?
and then force win on my condition


I know there is some where "force win" .inc
I need to block round somehow
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 01-12-2014 , 10:57   Re: block round on defuse or explode bomb
Reply With Quote #2

Without orpheu? Good luck
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 01-12-2014 , 12:23   Re: block round on defuse or explode bomb
Reply With Quote #3

there is a way - to turn off the server )))
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc

Last edited by avril-lavigne; 01-12-2014 at 12:23.
avril-lavigne is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 01-13-2014 , 16:57   Re: block round on defuse or explode bomb
Reply With Quote #4

I have an interesting idea to block round on defuse

we can detect bar time when defusing.

wait until 99% done and reset it / but count as defused !
remove c4 entity

how to detect bar time when defusing the bomb ?
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc

Last edited by avril-lavigne; 01-13-2014 at 16:58.
avril-lavigne is offline
DavidJr
Senior Member
Join Date: Apr 2012
Old 01-13-2014 , 19:49   Re: block round on defuse or explode bomb
Reply With Quote #5

It is written in wiki
https://wiki.alliedmods.net/Half-Lif...Events#BarTime
__________________
What are you looking for here?
DavidJr is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 01-13-2014 , 20:21   Re: block round on defuse or explode bomb
Reply With Quote #6

yes found thanks


Spoiler





hm found this interesting http://forums.alliedmods.net/showthread.php?t=158345
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc

Last edited by avril-lavigne; 01-13-2014 at 20:27.
avril-lavigne is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-13-2014 , 23:58   Re: block round on defuse or explode bomb
Reply With Quote #7

You can try this, not really efficient as forward gonna be called each time a grenade is thinking, but for obscur reasons you don't want to use orpheu, which would be an strongly efficient way.

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

#pragma semicolon 1

#define PLUGIN ""
#define VERSION "0.0.1"

#define cm(%0)    ( sizeof(%0) - 1 )

// const XO_CGRENADE = 5;
const m_bStartDefuse 384;
const 
m_bIsC4 =    385;
const 
m_flDefuseCountDown 99;
const 
m_flC4Blow 100;
const 
m_pBombDefuser_pent 388;

public 
plugin_init()
{
    
register_pluginPLUGINVERSION"ConnorMcLeod" );

    
RegisterHam(Ham_Think"grenade""OnCGrenade_C4Think");
}

public 
OnCGrenade_C4Thinkc4 )
{
    if( !
get_pdata_bool(c4m_bIsC4) )
    {
        return 
HAM_IGNORED;
    }

    new 
Float:flTime get_gametime();

    if( 
get_pdata_float(c4m_flC4Blow) <= flTime )
    {
        
set_pev(c4pev_flagsFL_KILLME);
        
        
// C4 should have blown here
        // Execute the code you want

        
        
return HAM_SUPERCEDE;
    }

    if( 
get_pdata_bool(c4m_bStartDefuse) )
    {
        new 
iDefuser get_pdata_ent(c4m_pBombDefuser_pent);
        if( 
iDefuser && get_pdata_float(c4m_flDefuseCountDown) <= flTime )
        {
            
set_pev(c4pev_flagsFL_KILLME);
            
ExecuteHamB(Ham_CS_Player_ResetMaxSpeediDefuser);
        
            
// C4 should have been defused here
            // Execute the code you want


            
return HAM_SUPERCEDE;
        }
    }

    return 
HAM_IGNORED;

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 01-14-2014 , 07:11   Re: block round on defuse or explode bomb
Reply With Quote #8

I ve chekd I have latest amxmodx but it doesnt recognize what Ham_CS_Player_ResetMaxSpeed is

__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
DavidJr
Senior Member
Join Date: Apr 2012
Old 01-14-2014 , 07:24   Re: block round on defuse or explode bomb
Reply With Quote #9

Maybe you use the old version of Hamsandwich?
__________________
What are you looking for here?
DavidJr is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-14-2014 , 07:25   Re: block round on defuse or explode bomb
Reply With Quote #10

Ham_CS_Player_ResetMaxSpeed is part of the updated HamSandwich, https://forums.alliedmods.net/showthread.php?p=1498389
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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 10:13.


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