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

Custom weapon questions

Recommended Posts

Hey.

I'm using GZDoom, and I'm editing some custom weapons.

I grabbed RepeaterZombie and PlamaRifle from Realm667. The RepeaterZombie actor has a state where his weapon vents out steam. I would like to copy that behavior to the Plasma Rifle player weapon.

But I can't spot where in the RepeaterZombie decorate code it points to this steam state.

Here is the decorate code:

http://pastebin.com/Z4wnSB3V

and I would like help with implementing that steam state to my Plasma rifle weapon. :)

Share this post


Link to post

It looks like you need to use the "Spindown" and "Overheat" states, Spindown being for after moderate bursts and Overheat being if you don't stop shooting.

Share this post


Link to post

I started by pasting the steam code right into the Plasma Rifle player weapon.

http://pastebin.com/d8Xg9CGv

It's at the very bottom.

With the code for the steam state in place, what instructions should I give in order for the player weapon to visit this state?

Share this post


Link to post

I got it working with A_Firecustommissile.

It uses ammo, however. How can that be prevented?

Share this post


Link to post

Only the Plasma rifle contains Useammo and that's Weapon.useammo. The plasma and steam projectiles don't. But I guess it's fine as is. It will still work.. :)

Moving on, could I somehow prevent a custom enemy from taking any fall damage?

It has 3000 health, but dies instantly when falling from 384 in height.

Share this post


Link to post
gemini09 said:

could I somehow prevent a custom enemy from taking any fall damage?

Unless the MonsterFallingDamage MAPINFO flag is enabled for the map, monsters shouldn't take any falling damage. So, disable that. However, if you're only interested in making this particular enemy to be immune to falling damage, then use the DamageFactor actor property like this:

DamageFactor "Falling", 0

Share this post


Link to post

The vertical auto-aim isn't working quite properly...

http://imgur.com/lxkX2cE

The custom plasmaball has the same size (height and radius) as the original plasmaball, but the speed is 170 instead of 25. Could that be the cause of this poor auto-aiming?

Share this post


Link to post

gemini09 said:
The custom plasmaball has the same size (height and radius) as the original plasmaball, but the speed is 170 instead of 25. Could that be the cause of this poor auto-aiming? [/B]


Yes. You need to have the projectile inherit from FastProjectile to get fast projectiles (~60+) to work properly.

Share this post


Link to post

Hey again.

I hope you guys can help with yet another weapon.

This is the weapon in question;

http://realm667.com/index.php/component/docman/doc_download/268-nuclear-missile

and this just the decorate code for it:

http://pastebin.com/RXmkeCqX

After the missile strikes, it sends a shockwave of flame actors/ sprites. These flame actors climb onto higher floors (IE a wall made up of a sector at say 64 units tall), and they go on endlessly until they reach a single linedef wall.

I would like to:

1. Prevent flame actors from climbing on walls, and instead just collide and "die".

2. Cut down on the amount of time these flame actors stay alive. I think that if they traveled for a distance of around 512 map units (provided they didn't collide on any walls), it would suffice.

I've modified its GL light effects, damage, and such, but I don't know when it comes to these two tasks.

Here it is illustrated: http://imgur.com/taFsWrW,qn6RhTa,9dEtr5T,KyrW3Is,m4RwZJo,enkeIRl,B2QsgrM,yDdp9LB,pwJE8eQ#0

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
×