In-game GUI's and Spawn menus Created 9 years ago2015-01-21 16:22:10 UTC by RollingBarrel RollingBarrel

Created 9 years ago2015-01-21 16:22:10 UTC by RollingBarrel RollingBarrel

Posted 9 years ago2015-01-21 16:22:10 UTC Post #323438
Ok. So...
I was wandering about making a multiplayer mod, and I thought, 'How would I add in GUI's, like in TF Classic?' So I looked around, but I couldn't find anything on it. When I say GUI, by the way, I don't mean the splash screen or HUD, but the box which lets you select a team in Team Fortress Classic- or what I really want is a GUI that lets you place entities IN-GAME. Like the Engineer class. I really want something like that which I can make, to spawn in entities of my choosing in GoldSrc. Any ideas?
Thanks. Oh, and by the way- this would be a Multiplayer/Singleplayer Half-Life mod I'm talking about, not a TF Classic mod or CS mod.

Thankyou!
RollingBarrel RollingBarrellearning in progress
Posted 9 years ago2015-01-21 17:07:55 UTC Post #323440
Wish I could help, but I just like posting in the forums.
I do understand tough what you mean with GUI. GUI stands for "Graphical User Interface", while HUD is for "Heads Up Display".
GUIs are supposed to be interactive, while HUDs are supposed to show information. I guess you could have a look at the TF source code if you find it, otherwise, I believe there might be some example code you can expand on in the HL-SKD.
Dr. Orange Dr. OrangeSource good.
Posted 9 years ago2015-01-21 18:28:19 UTC Post #323441
Thanks, but the SDK files turned up blank :(
Anymore help is still appreciated.
Thanks anyways!
RollingBarrel RollingBarrellearning in progress
Posted 9 years ago2015-01-21 18:52:18 UTC Post #323442
That's quite a coding challenge. I know TWHL's chickenfist did something like this entity spawning system in Goldsource, but I'm not sure he's still around these days.

Unfortunately the documentation for HL Coding is... sparse... to say the least.
Archie ArchieGoodbye Moonmen
Posted 9 years ago2015-01-21 21:55:50 UTC Post #323445
Bump! I'm glad some people still know the ways of old- if I knew how to code then perhaps I would experiment a bit, but as is... ^^
Oh well. I'm just curious. I had the main idea when I saw the constructions you can make in CS Zombies: Nexon in the Zombie shelter mode.
I've just discovered Go-Mod, a GoldSrc version of Garry's Mod; I was thinking of a spawn system like that too. By the way, if you haven't already seen it:
http://www.moddb.com/mods/go-mod
Thanks Archie-
Hey, I've had an idea! Maybe a dialogue box? Like the options in Skyrim or Fallout 3?
Food for thought.
RollingBarrel RollingBarrellearning in progress
Posted 9 years ago2015-01-22 15:57:02 UTC Post #323457
I know there's impulse commands that spawn things.
If you get a handle on the SDK, do a check for those impulse commands and see what they do.

I'd also think you might want to make a 'weapon' that spawns something.
The guns trace a line within an accuracy cone. You could probably copy the pistol code, remove the accuracy cone, and instead of dealing damage or displaying a decal, run the impulse command at the line collision location.

Easier said than done of course, but selecting which entity to spawn would be as 'simple' as equipping a weapon.
Tetsu0 Tetsu0Positive Chaos
Posted 9 years ago2015-01-22 21:24:52 UTC Post #323461
Hmm, I like that idea! Maybe I should learn to code in C... but the idea of a spawn gun would probably be much better than a whole GUI- especially if I can utilize the HUD instead.
RollingBarrel RollingBarrellearning in progress
Posted 9 years ago2015-01-22 22:33:21 UTC Post #323462
Right. The HUD exists already, you'd just need to make sprites for each weapon.
Tetsu0 Tetsu0Positive Chaos
You must be logged in to post a response.