Duke4.net Forums: More Game Functions and an Option to Use an Event - Duke4.net Forums

Jump to content

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

More Game Functions and an Option to Use an Event  "It seems like you need to hijack a gamefunc and use an event"

User is offline   HELLMOUSE 

#1

Using the definegamefuncname only allows you to have 0 to 62 ways to control Duke and the game. If you go beyond 62 this happens: GAME.CON:2955: error: function number exceeds number of game functions. Is there a way to create more game functions?

Another issue is that there are game functions but there seems to be a need to use events. Is there a way to use a game function without using an event?

It seems like the only way to manipulate controls is to "hijack" an existing game function (gamefunc). Even after that you then need to make sure there is an event (EVENT) associated with that game function.

This post has been edited by HELLMOUSE: 05 September 2020 - 04:57 PM

0

User is offline   Danukem 

  • Duke Plus Developer

#2

View PostHELLMOUSE, on 05 September 2020 - 04:55 PM, said:

It seems like the only way to manipulate controls is to "hijack" an existing game function (gamefunc). Even after that you then need to make sure there is an event (EVENT) associated with that game function.



There are plenty to hijack. And you don't need an event -- you can grab bits and extbits into vars in EVENT_PROCESSINPUT and then refer to those with ifand in the player actor or wherever. By the way extbits 64 is altfire by default.
1

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