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 10, 2011, 12:04:19 PM
Reply #60

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 #60 on: September 10, 2011, 12:04:19 PM »
Heh heh, this weapon is coming on well! In fact it's just about finished!....except....one more thing....

What exactly is it that makes bots jump when attacking with the weapon? Some sort of BotCheck? I looked in Top spin's coding and couldn't see anything. yes that's right, I care about bots -_-

September 10, 2011, 06:47:43 PM
Reply #61

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 #61 on: September 10, 2011, 06:47:43 PM »
ACS_Execute(195,0)

This thrusts a bot into the air.

September 11, 2011, 09:33:20 AM
Reply #62

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 #62 on: September 11, 2011, 09:33:20 AM »
Yay! It's done! Thank you to everyone that helped! This weapon was much harder to make than i thought without knowing all those code things. I'm sure Propel Blade and Flame Sword will be easier to make. inb4yes

September 12, 2011, 10:51:59 AM
Reply #63

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 #63 on: September 12, 2011, 10:51:59 AM »
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? :?

September 25, 2011, 03:08:15 PM
Reply #64

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 #64 on: September 25, 2011, 03:08:15 PM »
Alright I got a new question... in the spoiler I have a weapon I've been working on (if you've played x8 you know where it comes from). I want it to be aimable and have the same velocity as it keeps "growing" in size. (I know its a spawnitemex projectile when it starts but that is just a temp thing so I could test the damage of it).

(click to show/hide)

September 25, 2011, 03:26:39 PM
Reply #65

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 #65 on: September 25, 2011, 03:26:39 PM »
A_SpawnItemEX doesn't save projectile parenting by default if used multiple times. Try something like this for the SpawnItemEX methods:

SQUE B 0 A_SpawnItemEx("SqueezeBombLevel1",0,5,35,15,0,0,0,SXF_TRANSFERPOINTERS)

September 25, 2011, 04:06:16 PM
Reply #66

Offline MasterXman

  • Standard Member

  • Status Unknown
  • Date Registered: April 26, 2011, 12:15:48 AM

    • View Profile
Re: The "How do I make a weapon do that?" thread
« Reply #66 on: September 25, 2011, 04:06:16 PM »
I can't make rockcube an item. How do I make it an item? Woof! more MMBN STUFF!

September 25, 2011, 06:07:44 PM
Reply #67

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 #67 on: September 25, 2011, 06:07:44 PM »
Okay I have another problem-y weapon.
(click to show/hide)

September 25, 2011, 06:11:50 PM
Reply #68

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 #68 on: September 25, 2011, 06:11:50 PM »
Custom pain states bro. And it needs to do at least 1 damage in order for it to do anything (usually)

September 25, 2011, 06:15:05 PM
Reply #69

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 #69 on: September 25, 2011, 06:15:05 PM »
Ack, I was hoping I wouldn't need to bother with it doing damage. It might defeat the purpose of the weapon.

September 25, 2011, 06:16:23 PM
Reply #70

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 #70 on: September 25, 2011, 06:16:23 PM »
It's only needs 1 damage. You can even heal the damage in the painstate if you want.

September 25, 2011, 07:05:19 PM
Reply #71

Offline MasterXman

  • Standard Member

  • Status Unknown
  • Date Registered: April 26, 2011, 12:15:48 AM

    • View Profile
its all gone silent now...
« Reply #71 on: September 25, 2011, 07:05:19 PM »
Quote from: "xxkirbysonicxx1"
I can't make rockcube an item. How do I make it an item? Woof! more MMBN STUFF!
Did this just get ignored?

September 25, 2011, 10:21:04 PM
Reply #72

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 #72 on: September 25, 2011, 10:21:04 PM »
Look at the game. Stare at it for three hours, then look at where the items are stored and learn.

Also, ZDoom Wiki.

September 26, 2011, 05:59:59 PM
Reply #73

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 #73 on: September 26, 2011, 05:59:59 PM »
Me again! Hi!

There's something really weird with this weapon that I can't understand. For some reason, even when it does (0) damage and there's no custom pain state, it actually DOES damage players. I can't understand why.
Here's the coding for the weapon.
(click to show/hide)

September 26, 2011, 09:50:30 PM
Reply #74

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 #74 on: September 26, 2011, 09:50:30 PM »
Because you have +RIPPER set. Which means it's gonna do more than 1 damage to the actor, since it constantly causes damage when going through.