October 04, 2023, 05:24:32 pm

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  


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: Custom crosshair plugin  (Read 1327 times)

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12699
  • Another one --
Custom crosshair plugin
« on: April 16, 2013, 04:52:38 pm »

Ported from Indev/Git.

"The ini contains new two parameters: One of them is the crosshair image's filename, and the other is whether it has fake transparency (so that the backing color may be removed if it doesn't)."

Code: (CustomCrosshair.gml) [Select]
/* Custom crosshair script ported over from GG2 Indev/Git. */


xhairRI = ini_read_string("Settings", "CrosshairFilename", "");
xhairHasAlpha = ini_read_real("Settings", "CrosshairTransparent", 1);

ini_write_string("Settings", "CrosshairFilename", xhairRI);
ini_write_real("Settings", "CrosshairTransparent", xhairHasAlpha);



« Last Edit: April 16, 2013, 04:53:03 pm by Phantom Brave »

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


  • New Member
  • *
  • Karma: 21
  • Offline Offline
  • Posts: 26
  • Bang.
Re: Custom crosshair plugin
« Reply #1 on: April 28, 2013, 09:12:04 pm »

Really appreciate this plugin, man. No more having to recomiple the source code like I used to for my custom crosshair.

Any chance you can do something about the sniper charge cursor? Maybe also make it overlap perfectly and/or replace the original crosshair when fully charged? E.g. a red round crosshair replacing the white one when fully charged.
AKA Ryza
Pages: [1]

Page created in 0.024 seconds with 37 queries.