Duke4.net Forums: Infinite Ammo Script? - Duke4.net Forums

Jump to content

Hide message Show message
Welcome to the Duke4.net Forums!

Register an account now to get access to all board features. After you've registered and logged in, you'll be able to create topics, post replies, send and receive private messages, disable the viewing of ads and more!

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

Infinite Ammo Script?  "Are there any out there?"

User is offline   Two-Tone 

  • 0

#1

Hey all, been loving EDuke32 and the classic Duke Nukem games. Been wondering if anybody came up with an infinite ammo script for EDuke32?
0

User is offline   Trooper Dan 

  • Duke Plus Developer
  • 3,754

#2

Simple console cheats not good enough for you?

If you want a script, you could paste this into GAME.CON right under the line that says "actor APLAYER MAXPLAYERHEALTH PSTAND 0 0"

set RETURN 1
whilevarn RETURN 12
{
   setp[].ammo_amount RETURN 50
   add RETURN 1
}


I did it that way to save typing. It will give everything but your foot 50 ammo all the time.
0

User is offline   Two-Tone 

  • 0

#3

my version of the Atomic Edition doesn't have a Game.con file. just a DGame.con file
0

User is offline   Trooper Dan 

  • Duke Plus Developer
  • 3,754

#4

If you are using EDuke32 you can put that code in where I said and it will work, regardless of how the script file is named.
0

User is offline   Two-Tone 

  • 0

#5

View PostTrooper Dan, on 07 April 2019 - 12:08 PM, said:

If you are using EDuke32 you can put that code in where I said and it will work, regardless of how the script file is named.


I checked under DGame.Con and Duser.com and can't find the line where you mentioned where the script should be added to
0

User is offline   Trooper Dan 

  • Duke Plus Developer
  • 3,754

#6

Your CON files must be archived in your DUKE3D.GRP file then. Normally the game comes with copies of them outside the GRP, but that is not the way yours is configured. The "DGame.CON" file is probably not even being used. You could also add my code via a game event without putting it in the player actor.

In any case, you asked for a script and I gave you a script. You didn't say that you have zero knowledge of how scripting works in Duke 3D and that you needed a tutorial from first principles...that's another topic.
0

Share this topic:


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


All copyrights and trademarks are property of their respective owners. Instead of reading this text, you could be playing Ion Maiden! ;) © 2018 Voidpoint, LLC

Enter your sign in name and password


Sign in options