AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   FlashedEvent / Screenfade (https://forums.alliedmods.net/showthread.php?t=27116)

Striker 04-14-2006 23:37

FlashedEvent / Screenfade
 
Short Question:

How can I check if a flashbang from player A flashed player B or teammate C ?

GHW_Chronic 04-14-2006 23:41

only way to do this would be to
A. log when flash is thrown (player A threw)
B. hook screenfade and if person who's screen was faded is on the flash thrower's team, he is C, else, B

Xanimos 04-14-2006 23:45

That won't always be true...if two people throw flashes at the same time then it wouldn't know whos flash is whos

GHW_Chronic 04-15-2006 02:44

well, flashbangs blow up at an exact time after they are thrown, u could see if screenfade is executed exactly X.YYYYYY seconds after that person threw their flash. That way people would have to throw flashes at the exact time.

The exact time wouldn't be too hard to get, a small 2 minute script could find it.

VEN 04-15-2006 15:20

Quote:

only way to do this...
Much better catch explosion event.

GHW_Chronic 04-15-2006 15:23

by only way to do this i meant only way he's going to do this :-P


All times are GMT -4. The time now is 05:12.

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