Superfighters Deluxe

Superfighters Deluxe

Not enough ratings
Script: Flashbang
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
31.078 KB
9 Feb, 2023 @ 12:45pm
25 Feb, 2023 @ 5:10am
7 Change Notes ( view )

Subscribe to download
Script: Flashbang

Description
I know, the GIF is horrible.
Thanks to Discord user @dsaf#5025 for helping me with the script!

THIS SCRIPT REQUIRES SUPERFIGHTERS REDUX TO BE INSTALLED BECAUSE OF THE WHITE LIGHT TILE USED FOR VISUALS.

WHAT IS THIS?
Vanilla grenades replaced with flashbangs:
  • When detonated, it will perform a ray cast to each player in its range. Except for players, glass, and invisible block, anything in its way that absorbs projectiles prevents the target player from being affected.
  • Getting stunned will disarm you no matter the following:
  • If the player is facing toward the flashbang, they will stagger for an amount of time that is proportional to how close to the detonation.
  • If the player is facing opposite to the detonation, they will fall and be stunned for 500 milliseconds.
  • You can avoid being stunned by performing a block precisely at the moment of detonation.

HOW TO SETUP:
For texture replacement:
  • Head into: C:\Program Files (x86)\Steam\steamapps\common\Superfighters Deluxe\Content\Data\Images\Weapons\Thrown
  • Download these. [github.com]
  • Backup original files and replace them with downloaded ones.
You can always revert all changes by verifying the files through the Steam.

TECHNICAL LIMITATIONS:
  • Flashbangs can't be cooked:
    In fact, you just need to wait 1 hour to enjoy an explosion :) I have done this on purpose because I couldn't find out a reliable way to catch detonations caused by overcooking.

  • Bullet hits won't detonate them as collision with projectiles is disabled:
    I couldn't figure out how to catch the detonation and prevent it from exploding typically.
    Also, it would be OP to throw it to someone already firing his gun.

  • Custom player size is not supported since there is no way the script can gather information:
    GetSize() GetSizeFactor() GetBaseSize() all return the default values?!

  • The only way to customize and rebalance the script is to edit it via the script editor:
    I am planning to implement a command line interface to edit variables.

BUGS AND SUGGESTIONS:
Please report bugs in comments or Github with a clear explanation of what happened and how to recreate them.
It probably needs some balancing, I am open to suggestions.
3 Comments
EristeYasar  [author] 12 Feb, 2023 @ 7:59am 
thanks!
76561198353544168 12 Feb, 2023 @ 6:38am 
i like that you guys made a really good and unique script :steamhappy:
⎝⎝✧ˇSMILEˇ✧⎠⎠ 10 Feb, 2023 @ 3:53pm 
what a good scrip friend I hope you keep getting more good scrip like this :steamhappy: