ZDaemon Forum Index ZDaemon
Client/Server DOOM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Increasing ammo of cell box and Railgun cell cost

 
Post new topic   Reply to topic    ZDaemon Forum Index -> Wad Editing
View previous topic :: View next topic  
Author Message
shinobi-cl
Spamming!


Joined: 31 Jul 2007
Location: Xile

PostPosted: Fri Jul 17, 2015 1:19 am    Post subject: Increasing ammo of cell box and Railgun cell cost Reply with quote

Hi

I need that a cell box give 40 ammo instead of 20

How can i do this WITHOUT affecting other weapons/pickups?

Also i want the railgun to spend 5 units instead of 4

Thanks!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Aeyesx
Spamming!


Joined: 13 Oct 2012
Location: Czech Republic

PostPosted: Fri Jul 24, 2015 6:48 am    Post subject: Reply with quote

Uhh, So far you can change the Railgun ammo take using Dehsupp,
about that cellbox I am unsure, but i believe ACS would do the job
Back to top
View user's profile Send private message Send e-mail
EarthQuake
Spamming!


Joined: 02 Apr 2004
Location: Athens, Ohio. Dieblieber gonna getcha!

PostPosted: Sat Jul 25, 2015 12:38 am    Post subject: Reply with quote

You would use DEHSUPP for the railgun, with a DeHackEd weapon definition:
Code:
Weapon X (Railgun)
  Use Ammo = 5

Where X is the DeHackEd weapon number for the railgun. You'll have to look at the DEHSUPP docs to see which number it is. I'm not gonna explain what DEHSUPP is at the moment, so you'll have to do a bit of searching.

As for changing the ammo pickup amounts, be aware that large ammo is five times that of small ammo, so if you change one, you change the other. If this is okay, you're done with a bit of normal DeHackEd. However, if you want to change it, but not affect anything else, you will need to call a script when the item is picked up. You do this by setting the thing's special to ACS_ExecuteAlways(), and have it run a script that simply removes some cells with TakeInventory(). You will probably need to do some checks for when the player is near the maximum carrying amount though, so cells don't get taken away when they shouldn't.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    ZDaemon Forum Index -> Wad Editing All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group