Author Topic: Flash Granade  (Read 2149 times)

0 Members and 1 Guest are viewing this topic.

Offline AntyMan

  • Major(1)
  • Posts: 31
Flash Granade
« on: August 26, 2014, 06:58:14 am »
Script Name: Flash Granade
Script Description: The player can switch, between 2 grenades Flash&Normal,
keys S+Q. S - Crouch Q - Change Weapon.
Original Author(s): AntyMan
Core Version: 2.7.7
Download: Flash.zip
Demo: flash.sdm
« Last Edit: August 26, 2014, 07:00:19 am by AntyMan »

Offline Mighty

  • Camper
  • ***
  • Posts: 276
Re: Flash Granade
« Reply #1 on: August 27, 2014, 08:30:16 am »
I've made a very similar script to that few scriptcore versions ago and it had very major problem your script doesn't deal with either - font changes.

You apply "flash" by printing huge ||||||| to the player. If the player changes his font, the width, height and thickness of the character changes - therefore your flash might not be on the screen.

While this wouldn't be a problem for a casual gamer, it actually is - different languages use different fonts (check Polish vs English, ther fonts differ iirc.)

gl in future scripting
xFire: macmil        e-mail: macekmil@gmail.com
My scripts: Accuracy Script       Flashbang       Punishments GUID
            CatchMe Gamemod       AntiFake
            CW System             AntiFakeGUID

Offline ExHunter

  • Inactive Soldat Developer
  • Soldier
  • ******
  • Posts: 154
  • Speedy go!
Re: Flash Granade
« Reply #2 on: August 28, 2014, 07:47:41 am »
There's support for multiple layers for DrawText. So basically you can add a layer for the most common soldat fonts. I hope that helps.