Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Gunrock

Shotgunguy and chaingunner drop ammo instead of weapons?

Recommended Posts

I'm still trying to learn more about scripting as well as decorate functions. You guys have been very helpful!!!!!

My question is how do I go about making the zombie guy and the chain gunner drop ammo clips and shells instead of the usual chain gun and shotgun weapons?

 

Thanks for any help!!!

Share this post


Link to post
Posted (edited)
ACTOR MyCustomShotgunGuy : ShotgunGuy replaces ShotgunGuy
{
	DropItem Shells
}

ACTOR MyCustomChaingunGuy : ChaingunGuy replaces ChaingunGuy
{
	DropItem Clip
}

This will make the shotgun guy drop shells and the chaingun guy drop a clip.

Share this post


Link to post

Guys thank you!!!

Sorry about my lack of knowledge. I'm just now getting into decorate language.

Share this post


Link to post
10 hours ago, Gunrock said:

Guys thank you!!!

Sorry about my lack of knowledge. I'm just now getting into decorate language.

It is natural for somebody who is new to not know much yet.  Search the wiki, and ask questions if the wiki didn't answer them for you.  Later, when you have learned more and you know the answer to a question somebody else asks, pay it forward.

Share this post


Link to post

One thing of note is that ammo items and weapons dropped from enemies have half the usual amount, e.g. a chaingun already in the map on HMP has 20 bullets whereas one dropped from a chaingun guy only has 10.

Share this post


Link to post
9 hours ago, Chow Yun Thin said:

One thing of note is that ammo items and weapons dropped from enemies have half the usual amount, e.g. a chaingun already in the map on HMP has 20 bullets whereas one dropped from a chaingun guy only has 10.

If you want to take that into account, change

DropItem "Clip"

to

DropItem "Clip", 255, 10

The 255 tells it to drop the item 255/255 of the time (always, the default behavior), and the 10 tells it to drop a clip with only 10 bullets instead of the usual 20.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×