Author Topic: Flash Bang - Nade Control  (Read 3212 times)

0 Members and 1 Guest are viewing this topic.

Offline soldat-game

  • Camper
  • ***
  • Posts: 407
Flash Bang - Nade Control
« on: January 27, 2018, 11:12:18 am »
Script Name: FlashBang
Script Description: Flash bangs that blind the enemy!
Version: 2018.01.28.004
Author: dominikkk26
Compile Test: Passed
Core Version: 2.8.1+
Script Language: English
Download: Attachment! Click here to download the latest version. (2018.01.28.004)
Code script: Click to view
Video presentation: Click to view
Full Description:
Highly customizable script created for servers normal and realistic. What does:
- Commands: /flash /nade, /change /set, /help /flashhelp, and for compact for other mode taunt: /cc1 /cc2
- Key press support: Key crouch + Key change weapon change grenade type.
- You can set the maximum value of grenades.
- You can set the maximum value of flash grenades.
- Flash grenades don`t reject the player.
- Flash granades, they don`t change the physics of the player's movement.
- Flash grenades have a new physics of damage. Can change in config max damage and the radius of destruction.
- Flash grenades have the original flight physics like ordinary grenades.
- Custrom granade kit. Can set max give flash granades and normal granades :)
- Flash works correctly! - There will be no problems related to players playing at different resolutions.
- Config: (Or pastebin code)
Code: [Select]
//Optimize
MaxPlayer = 16; //[2-32] Max players what can be on your server.
AllowKeyPress = True; //[true|false] Allow you to change the grenade using the keys.
//Colors
ColorW = $adc600; //[Longint] Color displayed text on chat using the command /help (WriteConsole).
FlashColor = $F1F1F1; //[Longint] Color flashed. DONT EDIT. Edit only for funny :)
HudColor = $D9D5D1; //[Longint] Color hud. Text on the screen.
NadeInfoColor = $CC0000; //[Longint] Color nade inscription above the grenade.
FlashInfoColor = $CDCDCD; //[Longint] Color flash inscription above the grenade.
//Design
LayerFlash = 36; //[Number] For other programmers, or if you dont see the texts, change it. (BigText)
Method2FlashLayer = 40; //[Number] For other programmers, or if you dont see the texts, change it. (WorldText)
LayerHud = 37; //[Number] For other programmers, or if you dont see the texts, change it. (BigText)
FirstJoinLayer = 38; //[Number] For other programmers, or if you dont see the texts, change it  (BigText)
NadeInfoLayerStart = 41; //[Number] For other programmers, or if you dont see the texts, change it. (WorldText) Must be > Method2FlashLayer num.
NadeInfoTime = 58; //[Number] <60 be transparency effect, >70 be the inscription on the map becomes longer as the grenade explodes. DONT EDIT.
HudSize = 0.050; //[Number] Hud size on screen.
HudPosX = 12; //[Number] Hud position X on screen.
HudPosY = 405; //[Number] Hud position Y on screen.
NadeInfoSize = 0.038; //[Number] Size of inscription on nade.
NadeInfoCorrectionX = 12.75; //[Number] Position correction X of inscription on nade.
NadeInfoCorrectionY = 6.7; //[Number] Position correction Y of inscription on nade.
FirstJoinText = true; //[true|false] true add text to use command /flashhelp if player first join server.
FlashAll = true; //[true|false] true - all, false - enemy
SelfFlash = true; //[true|false] true - player can blind himself, false - player can`t blind himself. This setting works if FlashAll is false.
FlashSee = 2; //[1-3] Inscription above your grenade see: 1 - All players, 2 - You and your team, 3 - Only you.
//Flash config
MaxDistance = 250; //[Number] The maximum range on which players will be blinded
MinimalFlashTime = 80; //[Number] The minimum time of blinding caused by flash. 60 ~ 1s
MaxFlashTime = 240; //[Number] The maximum time of blinding caused by flash. 60 ~ 1s
MinimalDistToGainDamage = 85; //[Number] The minimum distance at which the damage can be inflicted by flash grenade. DONT EDIT.
MaxFlashDamage = 28; //[Number] Maximum damage that a player can get from a flash grenade.
FlashMethod = 2; //[1-2] 1 - Using BigText, old method, can be partial screen blinding effect (at very very high resolutions). 2 - Using WorldText work for all resolution. There will be no partial screen blinding effect.
UseRayCastForNadeDisplay = true;//[true|false] Works only if realistic mode active. True - You will not see the inscription if the grenade will not be in sight. False - off this effect, all time see inscription on nade.
AntyNadeMove = true;
VelListMax = 3; //[Number] DONT EDIT; If AntyNadeMove true and dont work try set to 6 and set FrezTime to 5; VelListMax must be FrezTime+1  - Best option
FrezTime = 2; //[Number] DONT EDIT; If AntyNadeMove true and dont work try set to 5 and set VelListMax to 6; FrezTime must be VelListMax-1  - Best option
//Max grenade count
MaxNormalCount = 2; //[Number] Specifies the maximum number of grenades, 0 to off.
MaxFlashCount = 1; //[Number] Specifies the maximum number of flash, 0 to off.
//Granadekit config
DisableGranadeKit = false; //[true|false] True - Disable granadekit spawn, False - Enables granadekit spawn.
GranadeKitNadeGive = 2; //[Positive number] Specifies the maximum amount of grenades to be granted after picking up granadekit.
GranadeKitFlashGive = 1; //[Positive number] Specifies the maximum amount of flash to be granted after picking up granadite
DistanceToGetNadeKit = 10.0; //[Positive single number] The distance in which the player must be to make granadekit work. DONT EDIT.
RayCastCorection = 1; //Dont Edit
« Last Edit: January 30, 2018, 10:07:45 am by soldat-game »

Offline soldat-game

  • Camper
  • ***
  • Posts: 407
Re: Flash Bang - Nade Control
« Reply #1 on: January 27, 2018, 12:26:05 pm »
I added video presentation:
https://youtu.be/yzCZL7v2pVc
I see, a few, downloads, plese add comments :)

Version 2018.01.28.004
- Add new commands /smoke /tabac popular alt+1 and alt+2
- Fix bug raycast grenade on realistic mode, in mode FlashSee=1 (all see)
- Fix bug in mode FlashSee=2 when friends did not see the type of your grenade.
- Change commands: /help now more transparent, readable and important for a player configuration information.
- Change MaxFlashTime to 240 ~ 4s
Thanks for testing and suggest :)
« Last Edit: January 28, 2018, 01:07:18 pm by soldat-game »

Offline machina

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1117
  • The world isn't nice. Why should I be...?
Re: Flash Bang - Nade Control
« Reply #2 on: January 27, 2018, 12:55:40 pm »
Looks fun.

Offline paintZoom

  • Major
  • *
  • Posts: 57
Re: Flash Bang - Nade Control
« Reply #3 on: January 27, 2018, 03:40:14 pm »
DOPE! ...
hoping someone UPs a server with this script on

Offline Ygrek Starmagedon

  • Soldier
  • **
  • Posts: 113
Re: Flash Bang - Nade Control
« Reply #4 on: January 28, 2018, 10:01:36 am »
Everything works fine and it's fun!

Offline logintoo

  • Major(1)
  • Posts: 22
Re: Flash Bang - Nade Control
« Reply #5 on: January 28, 2018, 11:19:44 am »
I had opportunity to test it. Works great, as it should :D
Laziness is one of my greatest virtues.

Offline soldat-game

  • Camper
  • ***
  • Posts: 407
Re: Flash Bang - Nade Control
« Reply #6 on: January 28, 2018, 01:07:37 pm »
Version 2018.01.28.004
- Add new commands /smoke /tabac popular alt+1 and alt+2
- Fix bug raycast grenade on realistic mode, in mode FlashSee=1 (all see)
- Fix bug in mode FlashSee=2 when friends did not see the type of your grenade.
- Change commands: /help now more transparent, readable and important for a player configuration information.
- Change MaxFlashTime to 240 ~ 4s
Thanks for testing and suggest ;)