Advanced Search

Author Topic: The "How do I make a weapon do that?" thread  (Read 106528 times)

0 Members and 2 Guests are viewing this topic.

April 09, 2012, 08:03:48 PM
Reply #195

Offline Korby

  • Global Moderator

  • Benvenuto nella room italiana!
  • **************
  • Date Registered: March 04, 2010, 03:36:02 AM

    • View Profile
    • Korby Games
Re: The "How do I make a weapon do that?" thread
« Reply #195 on: April 09, 2012, 08:03:48 PM »
Wily Capsule 7 does it, why don't you look at that?

April 09, 2012, 08:07:48 PM
Reply #196

Offline BiscuitSlash

  • MM8BDM Extender
  • *
  • Date Registered: November 20, 2010, 12:49:25 PM

    • View Profile
Re: The "How do I make a weapon do that?" thread
« Reply #196 on: April 09, 2012, 08:07:48 PM »
You mean through custom pain states? Wouldn't that cause a suicide if I did it that way?

The zdoom wiki has poison damage on it, which is basically what I need. I just have no idea on how to use this.
Quote from: "The ZDoom Wiki"
PoisonDamage value[, duration[, period]]
Gives a projectile poison damage. Poison damage isn't inflicted all at once but affects the victim for a certain amount of time. The value specified here defines the time the poisoning effect lasts. Remember, poison damage only affects players if only value is specified. Otherwise, it also affects enemies.
Poison damage is inflicted every period tics (the default value of 0 means once per second). If a non-zero duration is given, it is used for the total length of the poisoning, otherwise the length depends on the value.
(Putting it with the regular damage damage doesn't work)

April 09, 2012, 11:46:55 PM
Reply #197

Offline Gummywormz

  • Standard Member

  • Air Man Tile Enthusiast
  • Date Registered: December 23, 2010, 01:05:44 AM

    • View Profile
    • Github Page
Re: The "How do I make a weapon do that?" thread
« Reply #197 on: April 09, 2012, 11:46:55 PM »
You have to redefine the player class and change +NOBLOOD to +NOBLOODDECALS. It's not worth it though, as even that poison still makes the player suicide instead of earning you a frag.

April 10, 2012, 12:12:14 PM
Reply #198

Offline BiscuitSlash

  • MM8BDM Extender
  • *
  • Date Registered: November 20, 2010, 12:49:25 PM

    • View Profile
Re: The "How do I make a weapon do that?" thread
« Reply #198 on: April 10, 2012, 12:12:14 PM »
Awww, that's a shame. I was hoping I could go back and give Toxic Burst poison damage but yeah. I'll try finding a way in the pain state, but I'll have to make it not kill the player. (I think I know how, so I should be okay)

April 11, 2012, 04:06:24 PM
Reply #199

Offline Russel

  • MM8BDM Extender

  • Doc Croc
  • ***********
  • Date Registered: December 17, 2010, 11:11:25 PM

    • View Profile
Re: The "How do I make a weapon do that?" thread
« Reply #199 on: April 11, 2012, 04:06:24 PM »
Messatsu made a burning damage thing that worked for frags to the one who burned them, not sure how, though

April 11, 2012, 05:10:09 PM
Reply #200

Offline BiscuitSlash

  • MM8BDM Extender
  • *
  • Date Registered: November 20, 2010, 12:49:25 PM

    • View Profile
Re: The "How do I make a weapon do that?" thread
« Reply #200 on: April 11, 2012, 05:10:09 PM »
Before I go ahead and think up even more weapons that require similar things to that Quickman's Kama Itachi I was making, is it actually possible to make weapons chase in on other players like how the Wily Capsule did it? When I get round to making Jolt Leader and any other weapons with similar behavior, I don't want to be stumbling for ages again.

April 12, 2012, 03:27:30 PM
Reply #201

Offline Hallan Parva

  • MM8BDM MM8 Contributor

  • drifting absently across an endless sea
  • *
  • Date Registered: September 23, 2010, 10:32:40 PM

    • View Profile
Re: The "How do I make a weapon do that?" thread
« Reply #201 on: April 12, 2012, 03:27:30 PM »
Not really a weapon question but it's still actor related.

Is it possible to turn off (and subsequently turn on again) a bot's chat capabilities? I don't want the SmashBro bot running his mouth while EX Mode is active since it just wastes the powerup's time frame.

April 13, 2012, 02:40:50 PM
Reply #202

Offline Russel

  • MM8BDM Extender

  • Doc Croc
  • ***********
  • Date Registered: December 17, 2010, 11:11:25 PM

    • View Profile
Re: The "How do I make a weapon do that?" thread
« Reply #202 on: April 13, 2012, 02:40:50 PM »
Well...honestly, i don't know, my guess would be to use acs to mute bots. but without botscript compiling, there would be no way to...

maybe acs...

April 16, 2012, 01:04:37 PM
Reply #203

Offline ice

  • MM8BDM Extender
  • ***
  • Date Registered: October 05, 2010, 05:09:31 PM

    • View Profile
Re: The "How do I make a weapon do that?" thread
« Reply #203 on: April 16, 2012, 01:04:37 PM »
If it possible to force a player to crouch via altfire? (has an idea for original stage mode)

April 25, 2012, 09:32:37 PM
Reply #204

Offline -FiniteZero-

  • Standard Member

  • I'm somwhere.
  • Date Registered: March 06, 2011, 04:34:30 PM

    • View Profile
    • http://s4.zetaboards.com/Mega_Storm/index/
Re: The "How do I make a weapon do that?" thread
« Reply #204 on: April 25, 2012, 09:32:37 PM »
I'm trying to make a weapon that has a seperate attack for when the user is at full health, but only at full health. How would I go about trying this?

April 25, 2012, 09:37:32 PM
Reply #205

Offline Hallan Parva

  • MM8BDM MM8 Contributor

  • drifting absently across an endless sea
  • *
  • Date Registered: September 23, 2010, 10:32:40 PM

    • View Profile
Re: The "How do I make a weapon do that?" thread
« Reply #205 on: April 25, 2012, 09:37:32 PM »
Stare at AwNet's Hub Style charge attack.

He has a different attack for EVERY health amount, actually. I'm sure it will be more than helpful.

April 25, 2012, 09:38:01 PM
Reply #206

Offline -FiniteZero-

  • Standard Member

  • I'm somwhere.
  • Date Registered: March 06, 2011, 04:34:30 PM

    • View Profile
    • http://s4.zetaboards.com/Mega_Storm/index/
Re: The "How do I make a weapon do that?" thread
« Reply #206 on: April 25, 2012, 09:38:01 PM »
Quote from: "SmashBroPlusB"
Stare at AwNet's Hub Style charge attack.

He has a different attack for EVERY health amount, actually. I'm sure it will be more than helpful.

Ah, I'll do that, thanks.

May 06, 2012, 04:24:31 AM
Reply #207

Offline Jakeinator

  • Justice League Member

  • Me draw ooga booga
  • **
  • Date Registered: September 13, 2011, 06:26:12 PM

    • View Profile
Re: The "How do I make a weapon do that?" thread
« Reply #207 on: May 06, 2012, 04:24:31 AM »
Sorry if this is considered  a bump but how do i make a weapon that has a projectile go out a bit then split into 3 like the chameleon sting from X1?

May 06, 2012, 09:30:38 AM
Reply #208

Offline BiscuitSlash

  • MM8BDM Extender
  • *
  • Date Registered: November 20, 2010, 12:49:25 PM

    • View Profile
Re: The "How do I make a weapon do that?" thread
« Reply #208 on: May 06, 2012, 09:30:38 AM »
Make the spawn state for the projectile only last about half a second (remember, 1 second=35 tics) and then make it spawn three new projectiles at different angles. Use the A_SpawnItemEx code found in other weapons and change the last value to the angle.

Here's everything about A_SpawnItemEx

Remember that the new projectiles have to be different ones to the first one, otherwise you'll get a huge storm of whatever it is you're firing.

May 06, 2012, 07:22:28 PM
Reply #209

Offline xColdxFusionx

  • MM8BDM MM&B Contributor
  • *
  • Date Registered: August 02, 2011, 01:07:17 PM

    • View Profile
Re: The "How do I make a weapon do that?" thread
« Reply #209 on: May 06, 2012, 07:22:28 PM »
@Eon_and_Rush: Better Idea.