December 03, 2021, 10:51:59 am

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 3

Author Topic: [Not technically an entry] [Real Mod] Randomizer by Psychopath  (Read 5680 times)

Psychopath

  • Moderator
  • *****
  • Karma: 167
  • Offline Offline
  • Posts: 6696
  • Stop telling me to do things

I know that I'm technically not eligible to enter seeing as I'm a judge, but I thought that I'd give this section a little content, it looked so barren. I whipped this up in about 90 minutes of blindly hitting my keyboard. Don't delete this, I intend on copying it to Mods soon.


What is this "Randomizer" you speak of, you ask? Why, it's quite simple: Every player is randomly assigned a class and a weapon, you must stick with that combination until you die. Class-specific abilities such as cloak, build menu, and manvich are bound to their associated weapons.

Known flaws (might fix later):
  • All classes transform into an Overweight when eating (sans Overweight).
    -Because of Quote/Curly's short stature, they will clip into the floor.
  • All classes transform into an Infiltrator when stabbing (sans Infiltrator).
    -Because of Quote/Curly's short stature, they will clip into the floor.
  • All taunts show the wrong weapon unless you have that class' weapon.
  • Attempting to change class will bring up the team switch menu, this is intended.

Tired of having the same weapon and class every game? Shake things up a bit:
Randomizer.exe
« Last Edit: July 11, 2011, 10:35:18 pm by Elkondo »
Logged
Quote from: IRC
(8:01:46 PM) Psychopath: I'm just wondering what the next hot thing to fall on my lap will be
(8:01:57 PM) Lynn1: a girl maybe?
(8:02:01 PM) Psychopath: :o

USB

  • Guest
Re: [Real Mod] Randomizer by Psychopath
« Reply #1 on: July 11, 2011, 10:16:27 pm »

ooooooooooooooooh, I'll host in a second, looks interesting
Logged

Psychopath

  • Moderator
  • *****
  • Karma: 167
  • Offline Offline
  • Posts: 6696
  • Stop telling me to do things
Re: [Real Mod] Randomizer by Psychopath
« Reply #2 on: July 11, 2011, 10:20:11 pm »

K. Server's sending unexpected data somewhere, gonna fix it and reupload as soon as it's done. Keep the server up, I want to test this.
« Last Edit: July 11, 2011, 10:21:45 pm by Psychopath »
Logged
Quote from: IRC
(8:01:46 PM) Psychopath: I'm just wondering what the next hot thing to fall on my lap will be
(8:01:57 PM) Lynn1: a girl maybe?
(8:02:01 PM) Psychopath: :o

USB

  • Guest
Re: [Real Mod] Randomizer by Psychopath
« Reply #3 on: July 11, 2011, 10:22:26 pm »

Code: [Select]
___________________________________________
ERROR in
action number 1
of  Step Event
for object HealedHud:

Error in code at line 8:
       if(player.team == global.myself.team && /*player.class == CLASS_MEDIC*/ player.object.currentWeapon.object_index == Medigun) {
                                                                                             ^
at position 92: Unknown variable currentWeapon


got this a coupla' times
Logged

Psychopath

  • Moderator
  • *****
  • Karma: 167
  • Offline Offline
  • Posts: 6696
  • Stop telling me to do things
Re: [Real Mod] Randomizer by Psychopath
« Reply #4 on: July 11, 2011, 10:24:08 pm »

I forgot to have the data sent properly, just hang tight.

K, should be good now. Redownload.
« Last Edit: July 11, 2011, 10:28:51 pm by Psychopath »
Logged
Quote from: IRC
(8:01:46 PM) Psychopath: I'm just wondering what the next hot thing to fall on my lap will be
(8:01:57 PM) Lynn1: a girl maybe?
(8:02:01 PM) Psychopath: :o

Hanz Ketchup

  • close that door behind yourself you lil fucking dummy
  • Veteran Beta Tester
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 9818
  • holyfuckingshit-40000.tumblr.com
    • Tumblr! In case you missed it just a few lines up.
Re: [Real Mod] Randomizer by Psychopath
« Reply #5 on: July 11, 2011, 10:32:55 pm »

SCOUTS WITH MINIGUNS

Psychopath

  • Moderator
  • *****
  • Karma: 167
  • Offline Offline
  • Posts: 6696
  • Stop telling me to do things
Re: [Not technically an entry] [Real Mod] Randomizer by Psychopath
« Reply #6 on: July 11, 2011, 10:40:45 pm »

Fixed the error with the Healed HUD, reuploaded. If you don't want to redownload, disable that HUD in the Options menu.
« Last Edit: July 11, 2011, 10:41:24 pm by Psychopath »
Logged
Quote from: IRC
(8:01:46 PM) Psychopath: I'm just wondering what the next hot thing to fall on my lap will be
(8:01:57 PM) Lynn1: a girl maybe?
(8:02:01 PM) Psychopath: :o

Saltonara

  • 2012 Haxxy Award Winner
  • *
  • Karma: 2
  • Offline Offline
  • Posts: 7285
  • me go bathroom
Re: [Not technically an entry] [Real Mod] Randomizer by Psychopath
« Reply #8 on: July 11, 2011, 10:41:52 pm »

No offense but uh, you really need to sync this.

The weapons aren't synced, so in the client's view, everyone has a Scattergun. Also, you need to send data that tells the client what class they're going to spawn as.
Logged

Psychopath

  • Moderator
  • *****
  • Karma: 167
  • Offline Offline
  • Posts: 6696
  • Stop telling me to do things
Re: [Not technically an entry] [Real Mod] Randomizer by Psychopath
« Reply #9 on: July 11, 2011, 10:47:12 pm »

I have the Randomize() script executed by the server (which sends the RANDOMIZE flag and accompanying data) called when you first select a team and when you die. Dunno what's up with that.
« Last Edit: July 11, 2011, 10:47:37 pm by Psychopath »
Logged
Quote from: IRC
(8:01:46 PM) Psychopath: I'm just wondering what the next hot thing to fall on my lap will be
(8:01:57 PM) Lynn1: a girl maybe?
(8:02:01 PM) Psychopath: :o

USB

  • Guest
Re: [Not technically an entry] [Real Mod] Randomizer by Psychopath
« Reply #10 on: July 11, 2011, 10:48:05 pm »

and whenever people join my server, I get that medic glitch...
Logged

Psychopath

  • Moderator
  • *****
  • Karma: 167
  • Offline Offline
  • Posts: 6696
  • Stop telling me to do things
Re: [Not technically an entry] [Real Mod] Randomizer by Psychopath
« Reply #11 on: July 11, 2011, 10:49:16 pm »

Disable the damn HUD, I already told you to do that.
Logged
Quote from: IRC
(8:01:46 PM) Psychopath: I'm just wondering what the next hot thing to fall on my lap will be
(8:01:57 PM) Lynn1: a girl maybe?
(8:02:01 PM) Psychopath: :o

Saltonara

  • 2012 Haxxy Award Winner
  • *
  • Karma: 2
  • Offline Offline
  • Posts: 7285
  • me go bathroom
Re: [Not technically an entry] [Real Mod] Randomizer by Psychopath
« Reply #12 on: July 11, 2011, 10:55:02 pm »

IIRC, there's a time when the server will execute a spawning script, which sends data to the client about the spawning. Maybe if you made the Randomizer script return a value, that value could be sent to and decoded by the client.

Just a suggestion.
Logged

Psychopath

  • Moderator
  • *****
  • Karma: 167
  • Offline Offline
  • Posts: 6696
  • Stop telling me to do things
Re: [Not technically an entry] [Real Mod] Randomizer by Psychopath
« Reply #13 on: July 11, 2011, 10:57:34 pm »

I traced the code and nothing seems to be out of the ordinary. However, I decided to run Randomize(player); when they are being added to the list of players, so hopefully that'll address the issue where they spawn as Runners with scatterguns. I also fixed a conditional error with the HealingHUD, I hate how GML forces you to nest conditionals instead of being able to put them in a single line without any errors arising.

It's available for download now.
« Last Edit: July 11, 2011, 10:59:35 pm by Psychopath »
Logged
Quote from: IRC
(8:01:46 PM) Psychopath: I'm just wondering what the next hot thing to fall on my lap will be
(8:01:57 PM) Lynn1: a girl maybe?
(8:02:01 PM) Psychopath: :o

RebelINS

  • Martial Expert
  • *
  • Karma: 400
  • Offline Offline
  • Posts: 6842
  • I am a rising contender, confident to win.
Re: [Not technically an entry] [Real Mod] Randomizer by Psychopath
« Reply #14 on: July 11, 2011, 10:59:31 pm »

im wondering how high a runner with a minegun could jump
Pages: [1] 2 3
 

Page created in 0.038 seconds with 37 queries.