Duke4.net Forums: Some questions about CON - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Some questions about CON

User is offline   zykov eddy 

#1

Hello guys. I'm working on a small project and I'm interested if it's possible to do some trick via con code.

1.Is it possible to exit the game with the help of a special command?
2.Is it also possible to block the player from entering the regular menu screen?
3.Is there any way to pause the game without using the regular pause button? Maybe some special command or something like that?

Thanks!
0

User is offline   Helixhorned 

  • EDuke32 Developer

#2

View Postzykov eddy, on 22 May 2013 - 10:02 AM, said:

1.Is it possible to exit the game with the help of a special command?

You mean, terminate EDuke32 via CON? No. When in-game, you could spawn sprites until the limit is reached, but that may not be future-proof.

Quote

2.Is it also possible to block the player from entering the regular menu screen?

You could pass a map or volume/level combo on the command line to throw the player into the game initially. But what you're looking for is probably disabling the menu from in-game too, right? IMO it's a bad idea. (How is a user supposed to do keybindings and change other preferences, etc?) I see that in particular circumstances this may add "atmosphere" to the game, but it would need to be implemented somehow differently than by a global disable.

Quote

3.Is there any way to pause the game without using the regular pause button? Maybe some special command or something like that?

I think you can set ud.pause_on to 1 to pause and to 0 to unpause from CON. I've used that myself for debugging a couple of times, but may I ask what game effect you are trying to achieve?
0

User is offline   zykov eddy 

#3

View PostHelixhorned, on 22 May 2013 - 10:25 AM, said:

You mean, terminate EDuke32 via CON? No. When in-game, you could spawn sprites until the limit is reached, but that may not be future-proof.


Reaching the limit will cause an error message to appear. Is there any other way to quit the game without using F10 or menu?

View PostHelixhorned, on 22 May 2013 - 10:25 AM, said:

You could pass a map or volume/level combo on the command line to throw the player into the game initially. But what you're looking for is probably disabling the menu from in-game too, right?


Yep, I just want to make my own menu for the game which replaces the regular menu. I don't want to use the .bat file, though. Is there any other way to skip the menu at the start?

View PostHelixhorned, on 22 May 2013 - 10:25 AM, said:

(How is a user supposed to do keybindings and change other preferences, etc?)


I know, and I'm not gonna do any other menu screens except of the main one. I'll use cmenu to access them through my own menu. Besides, it's gonna be a quick project, so I'll probably skip most of the screens.

View PostHelixhorned, on 22 May 2013 - 10:25 AM, said:

I think you can set ud.pause_on to 1 to pause and to 0 to unpause from CON. I've used that myself for debugging a couple of times, but may I ask what game effect you are trying to achieve?


The pause button will be useful for the game, but I can't let the player use the regular button. Btw, will the game unpause via con? Does pause stops con from working?

This post has been edited by zykov eddy: 23 May 2013 - 04:03 AM

0

User is offline   zykov eddy 

#4

Just a suggestion: how about adding a "quit game" con command? It would be very useful for some mods and TC, I believe.
0

User is offline   Helixhorned 

  • EDuke32 Developer

#5

View Postzykov eddy, on 23 May 2013 - 04:03 AM, said:

The pause button will be useful for the game, but I can't let the player use the regular button. Btw, will the game unpause via con? Does pause stops con from working?

When paused, actor code will not be run, but CON can still be entered through events like EVENT_DISPLAYREST.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options