October 14, 2025, 08:26:40 am

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Wondering where all the forums have gone?

Join the community Discord server!

Pages: [1] 2

Author Topic: [Server Sent Plugin] Curved Flares  (Read 3450 times)

Derpduck

  • 2011 Haxxy Finalist
  • *
  • Karma: 42
  • Offline Offline
  • Posts: 5752
[Server Sent Plugin] Curved Flares
« on: July 04, 2015, 11:04:45 am »

Server sent plugin. Add curvedflares to ServerPluginsList.
Code: [Select]
object_event_add(Flare,ev_step,ev_step_begin,'
vspeed += 0.60
')
« Last Edit: July 04, 2015, 01:17:00 pm by Derpduck [LORD] »
Logged

therocketjumper

  • Guest
Re: [Server Sent Plugin] Curved Flares
« Reply #1 on: July 04, 2015, 11:21:02 am »

why not make the flaresī curve much like the demomanīs stickies, i think the curve of the flares is too much short
Logged

ZaSpai

  • Ray Bann's Minion
  • *
  • Karma: 14
  • Offline Offline
  • Posts: 2169
  • "Eeh?! We're just allies!"
Re: [Server Sent Plugin] Curved Flares
« Reply #2 on: July 04, 2015, 08:19:14 pm »

Code: [Select]
object_event_add(Flare,ev_step,ev_step_begin,'
vspeed += 0.60
')

Wouldn't it be more flexible to have a variable tied to the vspeed instead of hard setting it with a crappy value like +0.60

also how this becomes SSP with this minimal level of code is beyond me
Logged
Right behind you when you most expect it | classicwell master race

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12519
  • Another one --
Re: [Server Sent Plugin] Curved Flares
« Reply #3 on: July 04, 2015, 08:26:37 pm »

nice framerate variance
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

Perci

  • Full Member
  • ***
  • Karma: -11
  • Offline Offline
  • Posts: 387
  • Brilliancegoat
Re: [Server Sent Plugin] Curved Flares
« Reply #4 on: July 05, 2015, 04:23:49 am »

nice framerate variance
So the arc depends on the server's framerate?
-guy who knows nothing about game creation
Logged

ZaSpai

  • Ray Bann's Minion
  • *
  • Karma: 14
  • Offline Offline
  • Posts: 2169
  • "Eeh?! We're just allies!"
Re: [Server Sent Plugin] Curved Flares
« Reply #5 on: July 05, 2015, 04:26:33 am »

nice framerate variance
So the arc depends on the server's framerate?
-guy who knows nothing about game creation
exactly

absence of global.delta_factor means flares will plummet to the ground far quicker in 60fps
Logged
Right behind you when you most expect it | classicwell master race

Perci

  • Full Member
  • ***
  • Karma: -11
  • Offline Offline
  • Posts: 387
  • Brilliancegoat
Re: [Server Sent Plugin] Curved Flares
« Reply #6 on: July 05, 2015, 04:34:03 am »

nice framerate variance
So the arc depends on the server's framerate?
-guy who knows nothing about game creation
exactly

absence of global.delta_factor means flares will plummet to the ground far quicker in 60fps
That's similar to how charge turning used to work in TF2.
Logged

therocketjumper

  • Guest
Re: [Server Sent Plugin] Curved Flares
« Reply #7 on: July 05, 2015, 04:46:43 am »

nice framerate variance
So the arc depends on the server's framerate?
-guy who knows nothing about game creation
exactly

absence of global.delta_factor means flares will plummet to the ground far quicker in 60fps
That's similar to how charge turning used to work in TF2.
Seriously?
Logged

[FR]YB

  • 2013 Haxxy Award Winner
  • *
  • Karma: 28
  • Offline Offline
  • Posts: 642
  • There are 11 people playing holy sh
Re: [Server Sent Plugin] Curved Flares
« Reply #8 on: July 05, 2015, 06:22:35 am »

also how this becomes SSP with this minimal level of code is beyond me

We codegolf now

GML - 61 bytes
object_event_add(Flare,0,1,'vspeed+=0.6*global.delta_factor')
Code: [Select]
object_event_add(Flare,3,1,'vspeed+=0.6*global.delta_factor')
There's probably a way to make it even shorter by finding a workaround with the global.delta_factor


Edit: Lorgan pointed out that 0 is ev_create
« Last Edit: July 05, 2015, 06:43:42 am by [FR]YB »
Logged

Lorgan

  • Retired Randomizer Mod Developer
  • Resident Miku
  • *****
  • Karma: 28
  • Offline Offline
  • Posts: 3624
    • My own website
Re: [Server Sent Plugin] Curved Flares
« Reply #9 on: July 05, 2015, 06:34:18 am »

Disqualified, event 0 is ev_create and not ev_step.

This is my version, 49 bytes. Also this is a dumb plugin.
Code: [Select]
object_event_add(792,3,1,'vspeed+=18/room_speed')
« Last Edit: July 05, 2015, 06:35:56 am by Lorgan »
Logged
Unfortunately, turning a section into a communist oppressive regime is not against the forum rules, so there is really nothing we can do.
Quote from: steam
21:08 - Hullusorsa: lorgan, when will you buy us the keys?
21:09 - Lorgan: i'm waiting for greece to collapse so the value of the euro drops
21:09 - Lorgan: not even joking

[FR]YB

  • 2013 Haxxy Award Winner
  • *
  • Karma: 28
  • Offline Offline
  • Posts: 642
  • There are 11 people playing holy sh
Re: [Server Sent Plugin] Curved Flares
« Reply #10 on: July 05, 2015, 06:39:36 am »

Disqualified, event 0 is ev_create and not ev_step.
fug

49 bytes
Well played

Derpduck

  • 2011 Haxxy Finalist
  • *
  • Karma: 42
  • Offline Offline
  • Posts: 5752
Re: [Server Sent Plugin] Curved Flares
« Reply #11 on: July 05, 2015, 06:42:50 am »

nice framerate variance
60FPS is an abomination.

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12519
  • Another one --
Re: [Server Sent Plugin] Curved Flares
« Reply #12 on: July 05, 2015, 07:41:25 am »

nice framerate variance
60FPS is an abomination.
unless you're autistic and giddy like me
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

Derpduck

  • 2011 Haxxy Finalist
  • *
  • Karma: 42
  • Offline Offline
  • Posts: 5752
Re: [Server Sent Plugin] Curved Flares
« Reply #13 on: July 05, 2015, 07:58:29 am »

Here I fixed it for you.
Code: [Select]
global.game_fps == 30
global.delta_factor = 1;
global.skip_delta_factor = 1/2;
global.ticks_per_virtual = 1;
global.frameskip = 2;
room_speed = 30;

object_event_add(Flare,ev_step,ev_step_begin,'
vspeed += 0.60
')

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12519
  • Another one --
Re: [Server Sent Plugin] Curved Flares
« Reply #14 on: July 05, 2015, 09:47:12 am »

lol
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.056 seconds with 45 queries.