May 09, 2021, 12:09:00 pm

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Due to a rise in bot activity, new posters need to be approved before posting.

Join the community Discord server!

Pages: [1] 2

Author Topic: VisionImpairedDemo  (Read 3097 times)

Machidro

  • 2013 Haxxy Award Winner
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 1675
  • Gardicolo time is over.
VisionImpairedDemo
« on: September 09, 2012, 01:21:49 am »

This plugin needs some explaining.

The demoman's sticky bombs, while a great tool, have an inherent flaw: Their size and color makes it so that recognizing the position of your bombs against the wrong background can be difficult between blinks:



While the bombs are clearly visible, it's fairly easy to lose track of them in a more hectic scenario. If you have vision issues, or a low contrast monitor, this only makes spotting bombs more difficult. This plugin is meant to act as a solution, so that regardless of conditions on the battlefield, you can tell where the hell you shot your gun.

This plugin is for the VisionImpairedDemo.



With this plugin, sticky bombs are surrounded with a circle of your team/s color. While airborne, the circle is larger, and when on the ground, the surrounding shrinks in order to prevent visibility blockage. The color-to-black outline has the advantage that regardless of the background's color, it will always have significant and visible contrast.

For those that dislike a full circle, there is a second version without the circle fill, which you can enable by changing the value at the top of the plugin's code from zero to one.



Version: Any
Conflicts: None Known

Code: [Select]
object_event_add(Mine,ev_create,0,'

//Setting fill_or_outline to 0 will create a full bubble around a launched sticky, setting

it to 1 will only show an outline.

fill_or_outline=0;
color=0;
');

object_event_add(Minegun, ev_draw, 0, '
{
    with(Mine)
{
if team = TEAM_RED {color=c_red};
if team = TEAM_BLUE {color=c_blue};
{
if stickied==0 and ownerPlayer=global.myself
{
draw_circle_color(x,y,10,color,c_black,fill_or_outline)
}
if stickied==1 and ownerPlayer=global.myself
{
           draw_circle_color(x,y,7,color,c_black,fill_or_outline)
}

         }
     }
}
');
« Last Edit: September 09, 2012, 08:14:47 pm by Gardicolo »
Logged
A CHALLENGER HAS ARRIVED.

Saniblues

  • Onion Knight
  • Administrator
  • *****
  • Karma: -1305
  • Offline Offline
  • Posts: 12416
Re: VisionImpairedDemo
« Reply #1 on: September 09, 2012, 04:44:37 am »

I thought this was gonna be a plugin that hinders the demoman's vision in accordance to his disability.

I'm disappointed. 50 demerits.
Logged
Quote from: mop
Quote from: MR MAGN3TIC
I don't like it.  :nah:
Oh, well, you might as well pack up and stop now, because he doesn't like it
I'm bored out of my skull, Lets play a different game!
Lets take a visit down below And cast the world in flames!

trog

  • member of intel's squad of garbagemen against the yakuza
  • Veteran Member
  • ******
  • Karma: 27
  • Offline Offline
  • Posts: 10080
  • i am uberdeath
Re: VisionImpairedDemo
« Reply #2 on: September 09, 2012, 10:05:40 am »

Does this apply to other people's stickies?
Logged

PM me your apps for my clan

92% of people who see this will not
have the guts to repost it. When Goku
died in the explosion Cell tied to destroy Earth with, he did it for you and me. If you're not ashamed to love Goku, post this as your status and show everyone. Thank you, Goku. I lifted up my arms for the spirit bomb every time you asked for my energy.

Machidro

  • 2013 Haxxy Award Winner
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 1675
  • Gardicolo time is over.
Re: VisionImpairedDemo
« Reply #3 on: September 09, 2012, 10:56:37 am »

Does this apply to other people's stickies?

Yes it does. If you don't want it to, add

Code: [Select]
and owner=global.myself immediately following if stickied = 0 and 1.

I thought this was gonna be a plugin that hinders the demoman's vision in accordance to his disability.

That's a plugin for another day, this one is an accessibility option for those with poor eyesight or those who have difficulty tracing bombs against dark backgrounds.
Logged
A CHALLENGER HAS ARRIVED.

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12701
  • Another one --
Re: VisionImpairedDemo
« Reply #4 on: September 09, 2012, 12:49:51 pm »

why not just make a spritemod
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters

Machidro

  • 2013 Haxxy Award Winner
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 1675
  • Gardicolo time is over.
Re: VisionImpairedDemo
« Reply #5 on: September 09, 2012, 01:07:37 pm »

A sprite mod will only last as long as I do, a plugin with minimal code dependency will last as long as GmGG2 does.

Plus, who downloads an entirely new build for only one feature?
Logged
A CHALLENGER HAS ARRIVED.

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12701
  • Another one --
Re: VisionImpairedDemo
« Reply #6 on: September 09, 2012, 01:56:20 pm »

uh what spritemods are the simplest and most portable plugins possible
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters

trog

  • member of intel's squad of garbagemen against the yakuza
  • Veteran Member
  • ******
  • Karma: 27
  • Offline Offline
  • Posts: 10080
  • i am uberdeath
Re: VisionImpairedDemo
« Reply #7 on: September 09, 2012, 03:23:23 pm »

Making enemy stickies easier to see is pretty gay, you should have the owner check in there by default.
Logged

PM me your apps for my clan

92% of people who see this will not
have the guts to repost it. When Goku
died in the explosion Cell tied to destroy Earth with, he did it for you and me. If you're not ashamed to love Goku, post this as your status and show everyone. Thank you, Goku. I lifted up my arms for the spirit bomb every time you asked for my energy.

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12701
  • Another one --
Re: VisionImpairedDemo
« Reply #8 on: September 09, 2012, 04:05:26 pm »

Oh man I missed that

yeah you'll have to take that out if you want this plugin to stay on the board
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters

Machidro

  • 2013 Haxxy Award Winner
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 1675
  • Gardicolo time is over.
Re: VisionImpairedDemo
« Reply #9 on: September 09, 2012, 07:14:50 pm »

I'll change it if I must, but do I have to? For people with vision problems, enemy stickies are just as difficult to see as one's own, and this plugin is meant to help them as an accessibility option. I'm a bit hesitant to remove that as a feature, I'm sure you understand.
Logged
A CHALLENGER HAS ARRIVED.

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12701
  • Another one --
Re: VisionImpairedDemo
« Reply #10 on: September 09, 2012, 07:16:09 pm »

For people with vision problems, team colors are hard to make out. For people without vision problems, drawing a huge circle around the stickies gives them one more thing they don't have to practice. Change it.
« Last Edit: September 09, 2012, 07:16:47 pm by Chartreuse »
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters

Machidro

  • 2013 Haxxy Award Winner
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 1675
  • Gardicolo time is over.
Re: VisionImpairedDemo
« Reply #11 on: September 09, 2012, 08:14:56 pm »

Updated.
Logged
A CHALLENGER HAS ARRIVED.

『AMLV』bobtehnoob

  • Seasoned Member
  • *****
  • Karma: 15
  • Offline Offline
  • Posts: 2497
  • D̩͈̪͎̋e͖̅͂s̼̙͕̆͛ͅt̘̣͉̬̾̿̓̇͊ͅr̰̙͕̫͍̬o̭̖̥̲̳̣̍͗y̏̏́
Re: VisionImpairedDemo
« Reply #12 on: March 31, 2014, 10:15:09 am »

not sure if this merits a bump, but when i'm using this plugin, the deto's minegun disappears.
Logged

Quote
[17:57] <Nex> WTF BOB?! http://puu.sh/8T52s.png
[17:57] <Nex> How'd you break a GRAPH
Quote from: SkeleDude
Poop get out of here you belong in a real mans art thread

Twelve

  • Junior Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 112
  • get good, get lmaobox
    • http://gifmansion.com/2977/rainbowfrog
Re: VisionImpairedDemo
« Reply #13 on: October 05, 2014, 07:11:29 pm »

only bug i can find is demo's sticky launcher is made out of thin air, it looks like this croch is the sticky launcher
Logged

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12701
  • Another one --
Re: VisionImpairedDemo
« Reply #14 on: October 06, 2014, 01:24:22 am »

I piss mines.
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters
Pages: [1] 2
 

Page created in 0.021 seconds with 37 queries.