The Gang Garrison 2 Forum
May 24, 2013, 12:00:56 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Chat with us on IRC: http://ganggarrison.com/irc.html
Server: irc.esper.net, Channel: #gg2
 
   Home   Help Search Login Register  
Pages: « 1 2 3 »
  Print  
Author Topic: Medic beam bending  (Read 1228 times)
Smokey Joe
Veteran Beta Tester
*****
Offline Offline

Posts: 4069


Who's this suave burninator?


WWW
« Reply #15 on: September 20, 2011, 02:02:51 pm »

Nope.
Logged

~ Smokey Joe
Dusty
Hero Member
*****
Offline Offline

Posts: 10655


Dust in a box under a table


« Reply #16 on: September 20, 2011, 06:57:41 pm »

The only way I could see this working is by the medigun shooting an object that uses the mp_step_avoid or whatever. I don't think it's very easy to make a line break (correct me if I'm wrong psycho.)
Logged

NAGN
Developer
******
Offline Offline

Posts: 16895


Yeah so now I have an idea


« Reply #17 on: September 20, 2011, 07:36:48 pm »

If I'm not mistaken, this used to be sort of implemented, but it was sort of broken and it was later patched out
Logged



[im
RebelINS
Martial Expert
*
Offline Offline

Posts: 6676


Future is so bright I gotta wear shades


« Reply #18 on: September 20, 2011, 07:51:10 pm »

The medibeam line would have to use some sort of anchor system.

If there is an intersection with an obstacle on the line between the healer and the patient, that coordinate would be saved as an anchor point. Then a new line would be drawn from the healer to the anchor point, and one from the anchor point to the patient. It's not really bending around corners, but it would be the same visual approximation.

From that point, you can do some extra stuff:
A) put a limit on the internal angle of the two lines. For example, if it exceeds 90 degrees, the beam breaks. This is to prevent too much abuse of the system, considering that the current limit is distance-based. If there was no angle limit, the patients could go up and around some platforms without breaking the beam, because they're still within the distance limit.

B) Make the anchoring function recursive, so that it can bend more than once. This allows you to make more anchor points out of the sub-lines.

These are just implementation ideas I have from some extensive research on 2d ninja rope/general rope physics. Hopefully enough to give someone with more time and effort to work on this.
Logged

Humble Master
Hero Member
*****
Offline Offline

Posts: 1284


Maker of Drakora


« Reply #19 on: September 23, 2011, 06:55:34 pm »

umm

Pylo is faster than the doktor
by like 2 pixles, not enough to post about.
Logged

Finally returned
BillyBobJoe
2011 Haxxy Finalist
*
Offline Offline

Posts: 550

I quit


« Reply #20 on: September 24, 2011, 12:57:56 pm »

Yes please make this. Plus look at this screenshot. How come beam can go through some stuff?

and no it's not a pic from the medic beam glitch
Logged

hiatusI QUIT GUYS headshot
Unsung Hero
Hero Member
*****
Offline Offline

Posts: 3086


Classy Cynic


« Reply #21 on: September 24, 2011, 04:19:22 pm »

You clicked while moving your mouse around, so the beam is still in place even though it's going through some walls.
Logged


Swimming is all about speshul powah. I have mastered swimming in 721 different strokes.
Proud member of [PHS]
BillyBobJoe
2011 Haxxy Finalist
*
Offline Offline

Posts: 550

I quit


« Reply #22 on: September 24, 2011, 04:31:51 pm »

but it's not supposed to right z2 plus I moved it a little bit more then it broke
Logged

hiatusI QUIT GUYS headshot
I_am_awesome
Guest
« Reply #23 on: September 24, 2011, 05:18:00 pm »

but it's not supposed to right z2 plus I moved it a little bit more then it broke


the beam is just for the visuals, the actual collision check looks if it's possible to 'draw a line' from the one object (or rather it's hitbox) to the other.

the beam is drawn from the tip to the origin of the soldier (roughly his center)

Logged
Dusty
Hero Member
*****
Offline Offline

Posts: 10655


Dust in a box under a table


« Reply #24 on: September 24, 2011, 05:46:39 pm »

The collision line is also a lot smaller than the medibeam
Logged

BillyBobJoe
2011 Haxxy Finalist
*
Offline Offline

Posts: 550

I quit


« Reply #25 on: September 24, 2011, 05:54:47 pm »

thanks now i understand c1
Logged

hiatusI QUIT GUYS headshot
Smokey Joe
Veteran Beta Tester
*****
Offline Offline

Posts: 4069


Who's this suave burninator?


WWW
« Reply #26 on: September 24, 2011, 07:13:33 pm »

but it's not supposed to right z2 plus I moved it a little bit more then it broke


the beam is just for the visuals, the actual collision check looks if it's possible to 'draw a line' from the one object (or rather it's hitbox) to the other.

the beam is drawn from the tip to the origin of the soldier (roughly his center)




Are you telling me that all this time my waving the medigun around corners as an attempt not to cut the line was all for nothing?
Logged

~ Smokey Joe
Footpöp
Hero Member
*****
Online Online

Posts: 3517


I /saw/ him


« Reply #27 on: September 24, 2011, 08:43:20 pm »

Yeah, and that kinda means that he's not the second fastest.

That's completely missing the point of medic being able to move around fast enough to compensate for the few seconds where the heal beam breaks.

As for the idea of allowing it to bend, it would be nice, but in my opinion it should only be a few degrees before it breaks, to give it more leniency but not to buff it to the point where a medic can be behind a crate and healing someone on the other side of it.
Logged

Team /ABC/
Commando
Hero Member
*****
Offline Offline

Posts: 1430


Let me show you my true powers.


« Reply #28 on: September 25, 2011, 01:20:19 am »

Being able to heal someone through a crate... Thats one serious medigun.
Logged

Phantom Brave
All Hail Classicwell
Moderator
*****
Online Online

Posts: 9051


Another one --


WWW
« Reply #29 on: September 25, 2011, 02:40:48 am »

^
Making it trace from the end of the gun instead is something we might be able to get away with.
Logged

Pages: « 1 2 3 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.138 seconds with 20 queries.