[minimod][ZScript][v0.2] Option Search - Obsolete!

Post your example zscripts/ACS scripts/etc here.

[minimod][ZScript][v0.2] Option Search - Obsolete!

Postby m8f » Mon Mar 11, 2019 12:27 pm


Spoiler:

As you can see, this is Option Search. It searches options. And controls. Works with mods (that's Faspons and Weapon Menu options on screenshots).

Edit: this thing is obsolete - the improved version of it is now a part of GZDoom (since 4.0.0).
Last edited by m8f on Sun Apr 07, 2019 5:10 am, edited 5 times in total.
User avatar
m8f
the dreamer
 
 
 
Joined: 29 Dec 2017
Discord: m8f#0629
Github ID: mmaulwurff

Re: [minimod][ZScript][v0.1] Option Search

Postby Nash » Mon Mar 11, 2019 12:51 pm

Amazing. This should just be part of GZDoom.pk3 to be honest. :P
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: nVidia with Vulkan support

Re: [minimod][ZScript][v0.1] Option Search

Postby DabbingSquidward » Mon Mar 11, 2019 5:10 pm

Can ZScript be used to modify the console itself? If yes it would be awesome if you could add a context-sensitive tab completion.

For example the items, countitems, monsters and actorlist commands. Instead of having to type the whole name out, just write "actorlist shot", hit tab and it will cycle through all valid actors beginning with shot.

If you need a reference, Doom 3/Quake 4 is capable of this and I think Half-Life 2 too.

Type "gi", hit tab, it will say "give"
Type "give ammo_", hit tab, it will cycle through all ammo pickups.
Type "give ammo_b", hit tab, it will cycle through all ammo pickups beginning with b (bullets and belt in Doom 3's case)
User avatar
DabbingSquidward
 
Joined: 08 Nov 2017
Location: Germany

Re: [minimod][ZScript][v0.1] Option Search

Postby m8f » Tue Mar 12, 2019 8:19 am

Nash wrote:Amazing. This should just be part of GZDoom.pk3 to be honest. :P
I'll make a PR later, when I receive more feedback and weed out potential bugs. It will be harder to change when it's inside GZDoom.pk3, if it gets there.

DabbingSquidward wrote:Can ZScript be used to modify the console itself?
As far as I know, there is no way to modify console commands with ZScript. There should be modifications on the engine side. It would be awesome, indeed.
User avatar
m8f
the dreamer
 
 
 
Joined: 29 Dec 2017
Discord: m8f#0629
Github ID: mmaulwurff

Re: [minimod][ZScript][v0.2] Option Search

Postby m8f » Tue Mar 12, 2019 11:32 am

An update: v0.2. Changes:

- made option path wrap on multiple lines if it is too long;
- added searching by multiple terms;
- added an option to search by any or all the terms;
- moved readable strings to language file.

User avatar
m8f
the dreamer
 
 
 
Joined: 29 Dec 2017
Discord: m8f#0629
Github ID: mmaulwurff

Re: [minimod][ZScript][v0.1] Option Search

Postby Diode » Mon Mar 25, 2019 2:38 pm

Nash wrote:Amazing. This should just be part of GZDoom.pk3 to be honest. :P


I was thinking the same thing. I can't think of any reason why you wouldn't want it.
Diode
 
Joined: 29 Feb 2016

Re: [minimod][ZScript][v0.2] Option Search

Postby Nash » Mon Mar 25, 2019 2:47 pm

This mod is already merged into GZDoom a while back. You will see it in the next official release of GZDoom (4.0 I think).
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: nVidia with Vulkan support


Return to Script Library

Who is online

Users browsing this forum: No registered users and 2 guests