Duke4.net Forums: [RELEASE] Cosmetic Duke version 1.5 is up! [MERGED THREAD] - Duke4.net Forums

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • This topic is locked

[RELEASE] Cosmetic Duke version 1.5 is up! [MERGED THREAD]

User is offline   Danukem 

  • Duke Plus Developer

#31

View PostDecember Man, on 14 May 2017 - 07:54 AM, said:

Ok, so which TEMP variables should I rename? A lot of them are attached to footstep sounds and HUD elements. What is the maximum number of TEMP variables a mod should have?


I'm not saying you should rename them unless they actually need to be per-actor. In almost every case they should be declared as global. Pretty much* the only time a var needs to be per-actor is when an actor uses the var again in a later tic and your code assumes that it still has the same value that it had the last time the actor accessed it. An example of this would be if you wanted to save the actor's angle from the previous tic, in order to prevent it from automatically facing the player when shot. On a modern PC, I don't imagine that it's a significant issue to have, say, 30 per-actor vars that could have been global. At about 50 kilobytes per var, that still only adds up to 1.5 MB of wasted memory.

*An exception to this arises if you have code in events such as EVENT_EGS which manipulates vars, since a global var could be changed when a sprite spawns.
0

#32

Bumping since 1.5 is up!
1

#33

Pretty nice mod. This is the best I've ever seen Duke sound, are these samples from PSX Duke?

Would be nice to incorporate HUD weapons from WT, though it may not be possible due to copyright.
0

#34

View PostDuke of Hazzard, on 24 May 2017 - 04:15 PM, said:

Pretty nice mod. This is the best I've ever seen Duke sound, are these samples from PSX Duke?

Would be nice to incorporate HUD weapons from WT, though it may not be possible due to copyright.


Duke is straight from WT and DNF. As long as I'm not selling it, it's legal.
1

#35

View PostDecember Man, on 24 May 2017 - 04:24 PM, said:

Duke is straight from WT and DNF. As long as I'm not selling it, it's legal.


I see. That gives me hope to see other stuff from WT in it as well. :(
0

#36

This thread can be closed.

This post has been edited by December Man: 11 August 2018 - 11:19 AM

0

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • This topic is locked


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