Jump to content

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
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.

Edited by Empyre

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...