Raised This Month: $ Target: $400
 0% 

invincibility


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
veliflst
Member
Join Date: Aug 2013
Old 04-06-2014 , 03:51   invincibility
Reply With Quote #1

..

Last edited by veliflst; 08-06-2020 at 18:38.
veliflst is offline
Old 04-06-2014, 03:54
veliflst
This message has been deleted by veliflst.
Buckshot
Senior Member
Join Date: Mar 2014
Location: Sweden
Old 04-06-2014 , 22:35   Re: invisncibility when planting bomb
Reply With Quote #3

Quote:
Originally Posted by JuanPabloOlivosCordova View Post
dead babies flying everywere

__________________
PM me for private work.


Buckshot is offline
Send a message via Skype™ to Buckshot
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 04-07-2014 , 03:56   Re: invisncibility when planting bomb
Reply With Quote #4

Quote:
Originally Posted by Buckshot View Post
I like the idea.
__________________
Kia is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 04-07-2014 , 05:10   Re: invisncibility when planting bomb
Reply With Quote #5

Quote:
Originally Posted by JuanPabloOlivosCordova View Post
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.
__________________

Last edited by ANTICHRISTUS; 04-07-2014 at 05:10.
ANTICHRISTUS is offline
Old 04-07-2014, 13:09
veliflst
This message has been deleted by veliflst.
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 04-07-2014 , 14:07   Re: invisncibility when planting bomb
Reply With Quote #7

Quote:
Originally Posted by JuanPabloOlivosCordova View Post
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_)


Last edited by Flick3rR; 04-07-2014 at 14:26.
Flick3rR is offline
Send a message via Skype™ to Flick3rR
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 04-09-2014 , 00:18   Re: invisncibility when planting bomb
Reply With Quote #8

Quote:
Originally Posted by Flick3rR View Post
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 ...
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 04-09-2014 , 11:22   Re: invisncibility when planting bomb
Reply With Quote #9

Quote:
Originally Posted by hornet View Post

I've fulfilled the most reasonable part of your request ...
Meaning no dead babies lol
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 04-09-2014 , 19:09   Re: invisncibility when planting bomb
Reply With Quote #10

fireworks should be better than flying babies, cows, or whatever..
__________________
ANTICHRISTUS 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 15:42.


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