AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   invincibility (https://forums.alliedmods.net/showthread.php?t=238197)

veliflst 04-06-2014 03:51

invincibility
 
..

Buckshot 04-06-2014 22:35

Re: invisncibility when planting bomb
 
Quote:

Originally Posted by JuanPabloOlivosCordova (Post 2120752)
dead babies flying everywere


:nono:

Kia 04-07-2014 03:56

Re: invisncibility when planting bomb
 
Quote:

Originally Posted by Buckshot (Post 2121197)
:nono:

I like the idea. :fox:

ANTICHRISTUS 04-07-2014 05:10

Re: invisncibility when planting bomb
 
Quote:

Originally Posted by JuanPabloOlivosCordova (Post 2120752)
add dead babies flying everywere

needs some extra models with animation. too much work for nothing.
just search in titles for *bomb* or c4* in titles to find related topics.

Flick3rR 04-07-2014 14:07

Re: invisncibility when planting bomb
 
Quote:

Originally Posted by JuanPabloOlivosCordova (Post 2120750)
also when a person is trying to fix the bomb from exploding, its woprking, but when the bar is almost completed

the screen shows a picture, the whole screen, and a sound at same time for a few seconds, and they die

please , can u do this

Can't understand this stuff... What exactly do you mean? It's easy to set invisibility while planting or defusing, but I didn't get this part?

------------7.4.14, 21:22------------
Allright, I've made it like this for full invisible of player while planting/defusing the bomb.The invisibility is removing when the player gets killed, or had already planted/defused the bomb.
PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <csx>
#include <fun>

#define PLUGIN "Plant/Defuse Invis"
#define VERSION "1.0"
#define AUTHOR "Flicker"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("DeathMsg""Dead""a"
    
}

public 
bomb_planting(planter)
{
    
set_user_rendering(planterkRenderFxNone000kRenderTransAlpha); 
}

public 
bomb_planted(planter)
{
    
set_user_rendering(planter_000_)
}

public 
bomb_defusing(defuser)
{
    
set_user_rendering(defuserkRenderFxNone000kRenderTransAlpha0); 
}

public 
bomb_defused(defuser)
{
    
set_user_rendering(defuser_000_)
}

public 
Dead(victim)
{
    
set_user_rendering(victim_000_)



Kia 04-07-2014 15:53

Re: invisncibility when planting bomb
 
You should check if the player is valid (not sure if this is already happening in the bomb_ events)

joshknifer 04-07-2014 16:09

Re: invisncibility when planting bomb
 
Quote:

Originally Posted by Kia (Post 2121622)
You should check if the player is valid (not sure if this is already happening in the bomb_ events)

OP's English is bad. Pretty sure he wants invincibility and not invisibility.

Flick3rR 04-07-2014 16:18

Re: invisncibility when planting bomb
 
Oooooooooh, right! I'm so dumb :D He wants INVINCIBILITY.... So, I'll update it soon :D

hornet 04-09-2014 00:18

Re: invisncibility when planting bomb
 
Quote:

Originally Posted by Flick3rR (Post 2121541)
Allright, I've made it like this for full invisible of player while planting/defusing the bomb.The invisibility is removing when the player gets killed, or had already planted/defused the bomb.

Really not going to work as intended ( even if you did set godmode instead of rendering ). You haven't covered a failed bomb plant, such as weapon switch, jumping, etc. ( Also not so sure the thread autor wants godmode for defusing.

Preferred method:
Code:
#include <amxmodx> #include <hamsandwich> #include <engine> #include <csx> #define VERSION         "0.0.1" #define FBitSet(%0,%1)      ( %0 |= ( 1 << ( %1 & 31 ) ) ) #define FBitClear(%0,%1)    ( %0 &= ~( 1 << ( %1 & 31 ) ) ) #define FBitGet(%0,%1)      ( %0 & ( 1 << ( %1 & 31 ) ) ) new IsPlanting; new HamHook:_CBasePlayer_TakeDamage, HamHook:_CBasePlayer_ResetMaxSpeed; public plugin_init() {     register_plugin( "No Damage While Planting", VERSION, "hornet" );         if( find_ent_by_class( 0, "func_bomb_target" ) || find_ent_by_class( 0, "info_bomb_target" ) )     {         DisableHamForward( _CBasePlayer_TakeDamage = RegisterHam( Ham_TakeDamage, "player", "CBasePlayer_TakeDamage" ) );         DisableHamForward( _CBasePlayer_ResetMaxSpeed = RegisterHam( Ham_CS_Player_ResetMaxSpeed, "player", "CBasePlayer_ResetMaxSpeed" ) );     }     else    set_fail_state( "No Bombsite Found - Plugin Shutting Down" ); } public CBasePlayer_TakeDamage( id ) {     if( FBitGet( IsPlanting, id ) )         return HAM_SUPERCEDE;             return HAM_IGNORED; } public CBasePlayer_ResetMaxSpeed( id ) {     if( FBitGet( IsPlanting, id ) )         ResetPlanting( id ); } public bomb_planting( id ) {     FBitSet( IsPlanting, id );             EnableHamForward( _CBasePlayer_TakeDamage );     EnableHamForward( _CBasePlayer_ResetMaxSpeed ); } ResetPlanting( id ) {     FBitClear( IsPlanting, id );         DisableHamForward( _CBasePlayer_TakeDamage );     DisableHamForward( _CBasePlayer_ResetMaxSpeed ); }

I've fulfilled the most reasonable part of your request ...

joshknifer 04-09-2014 11:22

Re: invisncibility when planting bomb
 
Quote:

Originally Posted by hornet (Post 2122254)

I've fulfilled the most reasonable part of your request ...

Meaning no dead babies lol


All times are GMT -4. The time now is 16:29.

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