Advanced Search

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

0 Members and 1 Guest are viewing this topic.

September 27, 2011, 04:32:40 PM
Reply #75

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 #75 on: September 27, 2011, 04:32:40 PM »
Nope, it's still doing lots of damage. The ripper flag must be there to stop it from leaving upon contact. Even when set to 0 damage it will do lots of damage. Something tells me it has something to do with the RadiusThrust doing the damage. Anyway of avoiding that?

September 27, 2011, 07:11:42 PM
Reply #76

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 #76 on: September 27, 2011, 07:11:42 PM »
Try commenting out RadiusThrust to see if it really is your problem.

September 27, 2011, 07:49:08 PM
Reply #77

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 #77 on: September 27, 2011, 07:49:08 PM »
Well, it turns out I forgot to put "Goto pain+1" after the custom pain state, which pain.Gravity happened to be fight after. No wonder it kept pushing me down! (I'm not too sure if whether or not that derpy feeling is good or bad).

Just need to heavily edit it now. Thanks again everyone!

EDIT: Ack, it's still doing damage! I don't know what it is but there's is SOMETHING there that is being annoying. Here's the coding for the weapon and the painstate:
(click to show/hide)

September 27, 2011, 08:16:16 PM
Reply #78

Offline Trollman

  • Standard Member

  • The elusive BOXARTMAN makes an appearance!
  • Date Registered: April 16, 2011, 02:16:41 PM

    • View Profile
Re: The "How do I make a weapon do that?" thread
« Reply #78 on: September 27, 2011, 08:16:16 PM »
If it doesn't do damage, then shouldn't it lack a damagetype? (Sorry if it wouldn't work or something like that I am using common sense).

September 27, 2011, 08:23:24 PM
Reply #79

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 #79 on: September 27, 2011, 08:23:24 PM »
The damage type is only there so that in this case, it always switches the class flag to "PUSHABLE" whenever needed so that the radiusthrust can push them, but it might not even be necessary. I firstly need to nail down the problem of this thing doing damage, as even with all the damage and radiusthrust turned off, it still does random amounts of damage which can't really happen for this weapon.

October 04, 2011, 02:04:52 PM
Reply #80

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 #80 on: October 04, 2011, 02:04:52 PM »
Bump for Yo-Yo
Quote from: "SmashBroPlusB"
I want to make a projectile change directions and start to fly backwards like Shadow Blade, but there's a catch: I want the direction change to be "gradual". This means I want the projectile to slowly come to a halt, then slowly speed up in the opposite direction. I don't want the projectile to just "jump" and start instantly moving backwards like Shadow Blade.

Any ideas on how to do this? :?
Thanks for passing by me, bro

October 04, 2011, 03:50:05 PM
Reply #81

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 #81 on: October 04, 2011, 03:50:05 PM »
Well....you could try making 100 projectiles....

October 04, 2011, 04:13:16 PM
Reply #82

Offline Ukiyama

  • MM8BDM Extender

  • WAAAAAAAAAAAAAAAAA
  • ***
  • Date Registered: August 23, 2011, 07:49:19 PM

    • View Profile
Re: The "How do I make a weapon do that?" thread
« Reply #82 on: October 04, 2011, 04:13:16 PM »
Wait a minute, didn't yo-yo just go 3 forward, stop, and come back at the same speed... well anyway since shadow blade return is just it making a 180 degree turn which it is another object, I guess you could make like 7 actors of the yo yo that gradually decrease in spead then 7 more to speed back up, unless there is some flag like A_ScaleVelocity or something.

October 04, 2011, 04:42:10 PM
Reply #83

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 #83 on: October 04, 2011, 04:42:10 PM »
Quote from: "Ukiyama"
Wait a minute, didn't yo-yo just go 3 forward, stop, and come back at the same speed...
Nope. It started off fast, but when the Yo-Yo approached the third panel it slows down instead of suddenly stopping.

I'll try the multi-actor method, but I was looking for an easier fix. I still have nightmares over Hub Style and his 62 projectile checks.... ugh.

October 04, 2011, 04:46:31 PM
Reply #84

Offline Ukiyama

  • MM8BDM Extender

  • WAAAAAAAAAAAAAAAAA
  • ***
  • Date Registered: August 23, 2011, 07:49:19 PM

    • View Profile
Re: The "How do I make a weapon do that?" thread
« Reply #84 on: October 04, 2011, 04:46:31 PM »
My newer version of Squeeze Bomb has 12 different actors so it scales up slowly and that didn't take very long to be honest, once ya make one just copy and paste, make a few minor adjustments and it should be quick, (might not be the most efficient by any means but I think it would work just fine).

October 04, 2011, 11:51:15 PM
Reply #85

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 #85 on: October 04, 2011, 11:51:15 PM »
Try playing with the already mentioned A_ScaleVelocity.

October 07, 2011, 03:47:57 PM
Reply #86

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 #86 on: October 07, 2011, 03:47:57 PM »
So how do I make this projectile NOT do damage? (Right now with this coding it is.)
(click to show/hide)

October 07, 2011, 03:49:24 PM
Reply #87

Offline Max

  • MM8BDM Extender

  • i ate those food
  • ************
  • Date Registered: July 09, 2010, 08:10:13 PM

    • View Profile
    • ??
Re: The "How do I make a weapon do that?" thread
« Reply #87 on: October 07, 2011, 03:49:24 PM »
-SOLID

I'd reccomend RadiusThrust instead of Damagetypes (especially since your projectile is supposed to do no damage).

October 07, 2011, 04:15:34 PM
Reply #88

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 #88 on: October 07, 2011, 04:15:34 PM »
Nope, it can still damage them, even when I set the height and radius to 0. The damage it does is usually around 40 for some reason. Does it have anything to do with that MageStaff tracking?

October 07, 2011, 04:19:43 PM
Reply #89

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 #89 on: October 07, 2011, 04:19:43 PM »
Quote from: "Michael712"
Nope, it can still damage them, even when I set the height and radius to 0. The damage it does is usually around 40 for some reason. Does it have anything to do with that MageStaff tracking?

Thrusting someone into a wall deals damage to them. That's why enemies die when you run at them with Leaf Shield on.