May 09, 2021, 12:30: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] 2

Author Topic: [Client-Side] AmmoRing  (Read 1947 times)

PrOF

  • Full Member
  • ***
  • Karma: 43
  • Offline Offline
  • Posts: 594
  • Sometimes a dev. Only sometimes
[Client-Side] AmmoRing
« on: March 05, 2018, 01:38:02 pm »



Kind of inspired by
How about making the crosshair change in sprite every bullet shot

Completely customisable in:
-Type (ring/circle)
-Radius
-Thickness
-Precision
-Starting angle
-Direction

Some examples:
« Last Edit: May 16, 2018, 02:55:38 pm by PrOF »
Logged

Spazz

  • Seasoned Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 1933
  • Almost too much seasoning.
Re: [Client-Side] AmmoRing
« Reply #1 on: March 05, 2018, 02:34:06 pm »

Ok that's neat.

[edit] The circle is centered while the crosshair isn't, this itches my OCD to new levels.
Know I made a post about this somewhere to wareya some time ago.
« Last Edit: March 05, 2018, 02:38:26 pm by Spazz »
Logged

<3 Bustatunez

Kevin Kuntz

  • Heroic Member
  • ****
  • Karma: -58
  • Offline Offline
  • Posts: 712
  • panda took the kids
    • Rav And Kill Bill
Re: [Client-Side] AmmoRing
« Reply #2 on: March 05, 2018, 02:45:45 pm »

yeah i think this might come in handy as a better way to know how much ammo you got
also i meant become transparent every reload and shot
Logged
I PEAKED
I PEAKED

PrOF

  • Full Member
  • ***
  • Karma: 43
  • Offline Offline
  • Posts: 594
  • Sometimes a dev. Only sometimes
Re: [Client-Side] AmmoRing
« Reply #3 on: March 05, 2018, 02:57:00 pm »

also i meant become transparent every reload and shot
Could you rephrase that? :drool:
Logged

PrOF

  • Full Member
  • ***
  • Karma: 43
  • Offline Offline
  • Posts: 594
  • Sometimes a dev. Only sometimes
Re: [Client-Side] AmmoRing
« Reply #4 on: March 05, 2018, 03:04:13 pm »

Ok that's neat.

[edit] The circle is centered while the crosshair isn't, this itches my OCD to new levels.
Know I made a post about this somewhere to wareya some time ago.
"Thanks, Mister!"
    -Engineer talking about the logic of Game Maker


Try dis please, I know it's complex so don't worry if you do not understand it
Code: [Select]
cursor_sprite = -1;
global.cursorController = object_add();
object_set_persistent(global.cursorController, true);
object_event_add(global.cursorController, ev_draw, 0, '
draw_sprite(CrosshairS, 1, mouse_x, mouse_y);
');
instance_create(0, 0, global.cursorController);
This will actually mess up some plugins that normally hide the cursor (ex. inGameClock), but meh

Edit: yeah this actually works so I guess I'll add it to the list of very useful plugins
« Last Edit: March 05, 2018, 03:56:25 pm by PrOF »
Logged

Kevin Kuntz

  • Heroic Member
  • ****
  • Karma: -58
  • Offline Offline
  • Posts: 712
  • panda took the kids
    • Rav And Kill Bill
Re: [Client-Side] AmmoRing
« Reply #5 on: March 05, 2018, 03:13:37 pm »

also i meant become transparent every reload and shot
Could you rephrase that? :drool:
basically everytime you shoot your gun the sprite becomes transparent until you can actually see it
I don't know how to better phrase this english is not my main language
Logged
I PEAKED
I PEAKED

PrOF

  • Full Member
  • ***
  • Karma: 43
  • Offline Offline
  • Posts: 594
  • Sometimes a dev. Only sometimes
Re: [Client-Side] AmmoRing
« Reply #6 on: March 05, 2018, 03:15:08 pm »

Sorry, still didn't get it D:
"Becomes transparent until you can actually see it" mean that it'll become transparent forever :IAMONFIRE:
Logged

Kevin Kuntz

  • Heroic Member
  • ****
  • Karma: -58
  • Offline Offline
  • Posts: 712
  • panda took the kids
    • Rav And Kill Bill
Re: [Client-Side] AmmoRing
« Reply #7 on: March 05, 2018, 03:19:18 pm »

Sorry, still didn't get it D:
"Becomes transparent until you can actually see it" mean that it'll become transparent forever :IAMONFIRE:
ok i have full ammo
Transparency = 100
i shoot
Transparency = 60
i shoot again
Transparency = 40
so on until you can actually see
Logged
I PEAKED
I PEAKED

Spazz

  • Seasoned Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 1933
  • Almost too much seasoning.
Re: [Client-Side] AmmoRing
« Reply #8 on: March 05, 2018, 03:24:46 pm »

He's wanting that image displayed against ammo count. So full ammo is an invisible image while no ammo the crosshair is taken over by the image.

[edit] I don't use (or plan to) the client side plugin you have going, can you post the [code] in OP?
« Last Edit: March 05, 2018, 03:26:43 pm by Spazz »
Logged

<3 Bustatunez

Kevin Kuntz

  • Heroic Member
  • ****
  • Karma: -58
  • Offline Offline
  • Posts: 712
  • panda took the kids
    • Rav And Kill Bill
Re: [Client-Side] AmmoRing
« Reply #9 on: March 05, 2018, 03:33:52 pm »

It's useless cause i don't exactly know how to code and Ammo Ring is much better
Logged
I PEAKED
I PEAKED

PrOF

  • Full Member
  • ***
  • Karma: 43
  • Offline Offline
  • Posts: 594
  • Sometimes a dev. Only sometimes
Re: [Client-Side] AmmoRing
« Reply #10 on: March 05, 2018, 03:49:54 pm »

Oh yeah I didn't upload it. Oops
Logged

SevereHazard

  • Full Member
  • ***
  • Karma: 9
  • Offline Offline
  • Posts: 318
  • fuck this game
Re: [Client-Side] AmmoRing
« Reply #11 on: March 05, 2018, 09:24:32 pm »

Sorry, still didn't get it D:
"Becomes transparent until you can actually see it" mean that it'll become transparent forever :IAMONFIRE:
ok i have full ammo
Transparency = 100
i shoot
Transparency = 60
i shoot again
Transparency = 40
so on until you can actually see
There was actually a client side plugin for that awhile ago.

Kevin Kuntz

  • Heroic Member
  • ****
  • Karma: -58
  • Offline Offline
  • Posts: 712
  • panda took the kids
    • Rav And Kill Bill
Re: [Client-Side] AmmoRing
« Reply #12 on: March 05, 2018, 10:06:04 pm »

Sorry, still didn't get it D:
"Becomes transparent until you can actually see it" mean that it'll become transparent forever :IAMONFIRE:
ok i have full ammo
Transparency = 100
i shoot
Transparency = 60
i shoot again
Transparency = 40
so on until you can actually see
There was actually a client side plugin for that awhile ago.
huh.
Logged
I PEAKED
I PEAKED

Saniblues

  • Onion Knight
  • Administrator
  • *****
  • Karma: -1305
  • Offline Offline
  • Posts: 12416
Re: [Client-Side] AmmoRing
« Reply #13 on: March 05, 2018, 10:35:54 pm »

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!

PrOF

  • Full Member
  • ***
  • Karma: 43
  • Offline Offline
  • Posts: 594
  • Sometimes a dev. Only sometimes
Re: [Client-Side] AmmoRing
« Reply #14 on: March 06, 2018, 12:18:58 am »


That happens when lagging, yeah. Lower the ring precision and you should be fine
Logged
Pages: [1] 2
 

Page created in 0.055 seconds with 36 queries.