Forum Archive

Go Back   3D Realms Forums > 3D Realms Topics > Duke Nukem > Duke Nukem 3D Modifications
Blogs FAQ Community Calendar

Notices

 
 
Thread Tools
Old 07-21-2009, 06:22 PM   #1
Zaxtor

Zaxtor's Avatar
Question What is the code so you can't take an item if you're at the max?
Like ammo when you're 200/200 example you cannot take it only if 199/200 or less.

Like health same.

Whats the code to prevent player from taking it if you're max out.

Is for a special Item that doesn't give ammo nor health but cannot be taken if you're max.
__________________
OBLIVION'S STATUS. Maps are 100%, Textures are 100% {FINISHED}
Current status RELEASED http://www.fileplanet.com/hosteddl.a...ivionfinal.zip.
Zaxtor is offline  
Old 07-21-2009, 06:28 PM   #2
Sang

Sang's Avatar
Re: What is the code so you can't take an item if you're at the max?
So you want to only allow the player to pick up ammo when they're under a certain number, say 150/200?

Wouldn't that be similar to how medkits work? Maximum player health is 200, but you can only pick up medkits when your health is below 100. Perhaps you can look at the CON code for that and figure out how to put something similar in for ammo.
__________________
traB pu kcip
Sang is offline  
Old 07-21-2009, 07:16 PM   #3
Zaxtor

Zaxtor's Avatar
Re: What is the code so you can't take an item if you're at the max?
It just work like an ammo accept doesn't make sound and doesn't give ammo but cannot be taken when you're max.

Is for an effect.


Medkit can be picked up if your med kit is 199 or less but cannot be taken if you're 200 (full) same as ammo
__________________
OBLIVION'S STATUS. Maps are 100%, Textures are 100% {FINISHED}
Current status RELEASED http://www.fileplanet.com/hosteddl.a...ivionfinal.zip.
Zaxtor is offline  
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 12:16 PM.

Page generated in 0.12600398 seconds (100.00% PHP - 0% MySQL) with 18 queries

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

Website is ©1987-2014 Apogee Software, Ltd.
Ideas and messages posted here become property of Apogee Software Ltd.