Raised This Month: $12 Target: $400
 3% 

Looking for flashbang


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 07-26-2016 , 17:42   Looking for flashbang
Reply With Quote #1

Someone know how can i check if X player is looking for the flashbang? Because i'm doing a code for add X time for flashbang ( In special for help a member here ), but you guys know when you arent looking for the flashbang, you dont be completly blind, but when i'm or not looking for flashbang i get completly blind with my code. I need only the format for check if the player is not looking for the flashbang.

Can you guys help?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 07-26-2016 , 19:30   Re: Looking for flashbang
Reply With Quote #2

You can starting studying/learning from codes which already handles flash things, also reading their threads' posts within the approvers notes/requirements:
  1. No Team Flash (KRoT@L) [View Single Post] - https://forums.alliedmods.net/showpo...0&postcount=32
  2. Anti No-Flash - https://forums.alliedmods.net/showthread.php?t=120771
  3. Blinding Flashlight v0.2.3SL - https://forums.alliedmods.net/showthread.php?t=57305
  4. Ultimate Grenade Control (Nomexous) - https://forums.alliedmods.net/showthread.php?t=65584
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 07-26-2016 , 19:45   Re: Looking for flashbang
Reply With Quote #3

Exactly what i made but dont understand nothing. Because what they made i made too, and always when the flash explode, when i'm looking or not for the flash, i'm competly blinded.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
SpannerSpammer
Member
Join Date: Mar 2006
Old 07-27-2016 , 04:07   Re: Looking for flashbang
Reply With Quote #4

Just do an is_in_viewcone( ) check from the Player, and negate the effect
for any explosions not in the Player's viewfield.
__________________
[NeoTF|DEV]SpannerSpammer-[AoE]-
NeoTF Development Team.
http://steamcommunity.com/groups/neotf
SpannerSpammer is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 07-27-2016 , 11:31   Re: Looking for flashbang
Reply With Quote #5

Quote:
Originally Posted by EFFx View Post
Someone know how can i check if X player is looking for the flashbang? Because i'm doing a code for add X time for flashbang ( In special for help a member here ), but you guys know when you arent looking for the flashbang, you dont be completly blind, but when i'm or not looking for flashbang i get completly blind with my code. I need only the format for check if the player is not looking for the flashbang.

Can you guys help?
What "looking for flash" means? Do you mean when i have white all the screen ?( BLINDED ) ??
Craxor is offline
Send a message via ICQ to Craxor
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 07-27-2016 , 11:48   Re: Looking for flashbang
Reply With Quote #6

Quote:
Originally Posted by Craxor View Post
What "looking for flash" means? Do you mean when i have white all the screen ?( BLINDED ) ??
He means:
When the flash if right in front of you, and you eyes are straight pointed to the flash (i.e., your mouse aim is pointing to its location and you can see the flash grenade)... The flash completely blinds you, when its explodes. But actually, I think that even if it is on your back, it completely blinds you. The flash just needs to be able to straight reach your body, without any objects/walls in front of it. And a certain distance may be applicable to calculate the intensity it will blind you.
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 07-27-2016 , 11:50   Re: Looking for flashbang
Reply With Quote #7

Quote:
Originally Posted by addons_zz View Post
He means:
When the flash if right in front of you, and you eyes are straight pointed to the flash (i.e., your mouse aim is pointing to its location and you can see the flash grenade)... The flash completely blinds you, when its explodes. But actually, I think that even if it is on your back, it completely blinds you. The flash just needs to be able to straight reach your body, without any objects/walls in front of it. And a certain distance may be applicable to calculate the intensity it will blind you.
Yeap, as i say, when the 'explosion' touch you and you get a little/or complete FLASHED, that's what he wanne try to hook/cach ?

Anyway, 2 seconds of search: https://forums.alliedmods.net/showpo...15&postcount=2

Lol, i re-read the first topic, he want to check if there is any flash bang around of a player and the flash bang is prepared to explode, he also want to get the time of the flash bag until explosion.

Last edited by Craxor; 07-27-2016 at 11:54.
Craxor is offline
Send a message via ICQ to Craxor
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 07-27-2016 , 23:58   Re: Looking for flashbang
Reply With Quote #8

Quote:
Originally Posted by Craxor View Post
Yeap, as i say, when the 'explosion' touch you and you get a little/or complete FLASHED, that's what he wanne try to hook/cach ?

Anyway, 2 seconds of search: https://forums.alliedmods.net/showpo...15&postcount=2

Lol, i re-read the first topic, he want to check if there is any flash bang around of a player and the flash bang is prepared to explode, he also want to get the time of the flash bag until explosion.
Your two second isnt what i want.

Is this the soluction?

https://forums.alliedmods.net/showpo...64&postcount=2
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 07-28-2016 , 01:54   Re: Looking for flashbang
Reply With Quote #9

Quote:
Originally Posted by EFFx View Post
Your two second isnt what i want.

Is this the soluction?

https://forums.alliedmods.net/showpo...64&postcount=2
That's if you want the INDEX of who has been flashed.
Craxor is offline
Send a message via ICQ to Craxor
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 07-29-2016 , 16:51   Re: Looking for flashbang
Reply With Quote #10

what you mean with that?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Reply


Thread Tools
Display Modes

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 03:20.


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