May 09, 2021, 12:40:10 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]

Author Topic: [Request] Medic calls based on percent of health left  (Read 1239 times)

Tornadoblitz

  • Guest
[Request] Medic calls based on percent of health left
« on: May 28, 2013, 01:35:47 am »

       /  :e:      ->       /   :e: (shade of light red in backround)     ->     /  :e: (deep red shade in backround)
 :x11: 100       ->   :x11: 75                                                  ->      :x11: 25
~~~~
 Nice aesthetic change for those with health bars (aka, everyone except Player) , and something to help with anyone named Player (if they find out about the plugin, and somehow does not figure out options) .
If you need a little bit of light, this will only show when a player calls for medic, and perhaps the medic's hud when someone calls too (if it does not already) .
Logged

[FR]YB

  • 2013 Haxxy Award Winner
  • *
  • Karma: 28
  • Offline Offline
  • Posts: 642
  • There are 11 people playing holy sh
Re: [Request] Medic calls based on percent of health left
« Reply #1 on: May 28, 2013, 12:43:04 pm »

I don't really understand what you want, please post an image of how you'd see what the plugin would do

Here's a prototype, that displays a white / red medic bubble above the head of all friendly players, like the healthbar.


(click to show/hide)

Code: [Select]
object_event_add(SpeechBubbleO, ev_draw, 0, '
draw_sprite_ext(sprite_index, image_index, x, y, 1, 1, 0, c_white, image_alpha);
if ((image_index == 45) && (owner.team == global.myself.team)) {
var healthRate, burnRate;
healthRate = owner.hp / owner.maxHp;
burnRate = owner.burnIntensity  / owner.maxIntensity;
draw_sprite_ext(sprite_index, image_index, x, y, 1, 1, 0, c_red, image_alpha * (1-healthRate));
draw_sprite_ext(sprite_index, image_index, x-2, y+2, 1.2, 1.2, 0, c_red, 0.25 * image_alpha * (burnRate));
}
');

Post feedback anyway please :3

Edit: wrong image, duh
Edit2: plugin redone
« Last Edit: May 29, 2013, 03:06:01 am by [FR]YB »
Logged

Tornadoblitz

  • Guest
Re: [Request] Medic calls based on percent of health left
« Reply #2 on: May 28, 2013, 10:55:07 pm »

 You make me feel bad for you doing the plugins. It was basically an asthetic (for those with healthbars) medic call. So, if a scout calls for  :e: and his health is say, 50%, the medic icon will now have a red backround depending how much percent of health is left.







 It changes the medic call, to be clear. I can try and do some shading art, if you need it.
« Last Edit: May 28, 2013, 10:56:28 pm by Schadenfreude »
Logged

[FR]YB

  • 2013 Haxxy Award Winner
  • *
  • Karma: 28
  • Offline Offline
  • Posts: 642
  • There are 11 people playing holy sh
Re: [Request] Medic calls based on percent of health left
« Reply #3 on: May 29, 2013, 03:04:46 am »

Oh there I got it. Sorry  :hehe:

I replaced my original post's attached file. Download it :3

You make me feel bad for you doing the plugins

No problem :z5:
« Last Edit: May 29, 2013, 03:07:17 am by [FR]YB »
Logged
Pages: [1]
 

Page created in 0.023 seconds with 36 queries.