You would use DEHSUPP for the railgun, with a DeHackEd weapon definition:
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.
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