
ShadowFox0809
Joined: Feb 27, 2010
|
Posted: Jun 2, 2010 03:36 PM
Msg. 1 of 7
Is it possible to script the UI, or at least, the custom map's game option's menu to create custom options, such as:
* The ability to choose which custom vehicles to use (i.e., an option to choose how many pelicans, banshees, wraiths, etc. to spawn)
* The ability to turn off certain scripts for improved gameplay (i.e. pelican pickup script)
*Anything else that can be coded with devcommands
|
|
|

GameCreat0r
Joined: Apr 9, 2010
"Perhaps the ending has not yet been written..."
|
Posted: Jun 2, 2010 05:53 PM
Msg. 2 of 7
Good question, deserves an answhere. However all I know is that you can at some stuff like options to bothe the UI and the options menue in a map. The interface I think is posseble but linking the options to the script idk.
|
|
|

GameCreat0r
Joined: Apr 9, 2010
"Perhaps the ending has not yet been written..."
|
Posted: Jun 3, 2010 08:59 AM
Msg. 3 of 7
Quote: --- Original message by: R BlazeQuote: --- Original message by: ShadowFox0809 The ability to choose which custom vehicles to use (i.e., an option to choose how many pelicans, banshees, wraiths, etc. to spawn) Since the types of vehicles change from map to map, this would be a near impossible feat to achieve. Quote: --- Original message by: ShadowFox0809 The ability to turn off certain scripts for improved gameplay (i.e. pelican pickup script) Scripts cannot be turned off unless they are scripted to have a toggle ability. Even if they did, the odds of this idea gaining enough momentum/community support to make a standardization are almost tilting toward the negative end of the spectrum. Taking this into account plus the fact that all the older maps don't have this option make for a pretty useless UI option. Quote: --- Original message by: ShadowFox0809 Anything else that can be coded with devcommands If it's a dev command, it can be done as a button in the UI. I don't know how... but I know you can. You didn't quit got it. You answhered all of the UI questions so that is imposseble indeed. But you still have the options wen you press Esc in game. I know you can do stuff whit the local player but idk if you can scrip these things to work for the whole server. Since the creator of an game has more options like restart game I think you can give sv_ commands. However commands to the map script seem hard to me.
|
|
|

ShadowFox0809
Joined: Feb 27, 2010
|
Posted: Jun 3, 2010 10:58 PM
Msg. 4 of 7
If the compiled map script is waiting for a global to be true, a simple UI command that sets it true will complete what the script is looking for. The script (or any additional script related to it) would then wait for the global to switch to false again. That is... Quote: script continuous sleep_until global_wraiths_spawning true object_create wraith_1 object_create wraith_2 (then whatever script they use to make custom vehicles respawn, if necessary) sleep_until global_wraiths_spawning false Then the script Quote: script continuous sleep_until global_wraiths_spawning false object_destroy wraith_1 object_destroy wraith_2 sleep_until global_wraiths_spawning true This example script could even be modified not to remove the vehicle from the map until all players are out of them (if there was a banshee/pelican/scarab, the host could abuse that ability by killing the driver repeatedly that way). Also, a sv_say command could notify players when the host has switched an option (sv_say "all banshees will be removed, you have 10 seconds to exit a banshee if you're in one") Edited by ShadowFox0809 on Jun 3, 2010 at 10:59 PM
|
|
|

GameCreat0r
Joined: Apr 9, 2010
"Perhaps the ending has not yet been written..."
|
Posted: Jun 4, 2010 08:16 AM
Msg. 5 of 7
Quote: --- Original message by: ShadowFox0809 Is it possible to script the UI, or at least, the custom map's game option's menu to create custom options, such as:
* The ability to choose which custom vehicles to use (i.e., an option to choose how many pelicans, banshees, wraiths, etc. to spawn)
* The ability to turn off certain scripts for improved gameplay (i.e. pelican pickup script)
*Anything else that can be coded with devcommands No YOU should learn to read!! Eigther the main menu OR ATLEAST the map's options menu!! Stop interfearing if you can't give any usefull information R BlazeEdited by Niels on Jun 4, 2010 at 08:18 AM
|
|
|

ShadowFox0809
Joined: Feb 27, 2010
|
Posted: Jun 4, 2010 09:09 AM
Msg. 6 of 7
I'm actually asking several things, but basically, I just want to know how much I can control custom map options by using ui widgets.
|
|
|

GameCreat0r
Joined: Apr 9, 2010
"Perhaps the ending has not yet been written..."
|
Posted: Jun 4, 2010 07:45 PM
Msg. 7 of 7
So where to learn master?
btw what happened to some of the posts including the one of R Blaze? They seem to be deleted I ques Dennis was here.
Edited by Niels on Jun 4, 2010 at 07:45 PM
|
|
|
| |
|
|
 |
|