Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Multiple ammo types?  (Read 1084 times)

NewoTigra

  • Bay Watcher
    • View Profile
Multiple ammo types?
« on: October 04, 2009, 02:51:22 pm »

I know how the ammo entries work, in that if you say a crossbow fires [BOLT] type ammo, then any ammo that used the [BOLT] tag can be fired from a crossbow.

But is it possible to give a ranged weapon more than one of these tags?
e.g.
Code: [Select]
[ITEM_WEAPON:ITEM_WEAPON_CROSSBOW_LARGE]
[NAME:BFC:BFCs]
[DAMAGE:110:BLUDGEON]
[WEIGHT:120]
[SKILL:HAMMER]
[RANGED:CROSSBOW:BOLT]
[RANGED:CROSSBOW:BOLT_LARGE]
[TWO_HANDED:0]
[MINIMUM_SIZE:6]
[CAN_STONE]
[MATERIAL_SIZE:9]

basically, can I make it so I have a bigger, heavier crossbow that fires normal ammo as well as more powerful custom ammo, without allowing regular crossbows to fire the custom ammo.
There might be less convoluted ways of doing it, but where's the fun in that?
« Last Edit: October 04, 2009, 05:25:51 pm by NewoTigra »
Logged

Arrkhal

  • Bay Watcher
  • Who modded in these flying killer attack babies???
    • View Profile
Re: Multiple ammo types?
« Reply #1 on: October 04, 2009, 07:11:25 pm »

The easier way is to just have 2 ammos which are both [BOLT]s.  Make sure both are specified in the entity file.
Logged
In development: Arrkhal's Material and Weapon balance
Please test and let me know what still needs fixing.  And get these freakin' babies offa me!

ricemastah

  • Bay Watcher
    • View Profile
Re: Multiple ammo types?
« Reply #2 on: October 05, 2009, 11:36:06 pm »

The easier way is to just have 2 ammos which are both [BOLT]s.  Make sure both are specified in the entity file.

That'd be true if he wanted a NORMAL crossbow to fire it, but he asked if a custom crossbow to be able to fire both and a normal crossbow being unable to fire the new ammo.
Now I really don't know the answer to your question, but I suppose you've already tried it cause you haven't said anything else. If you have tested it please let us know, it'd be an interesting piece of information and could serve to make some interesting weapons and sets of stuff obviously.
Logged

NewoTigra

  • Bay Watcher
    • View Profile
Re: Multiple ammo types?
« Reply #3 on: October 10, 2009, 01:07:12 pm »

Sorry for necro, but my internet was down for the past week :(
But anyways...it works perfectly!
The new crossbows are able to fire both the 'large' ammo and the regular ammo, and normal crossbows are still confined to regular ammunition!

However, what possible uses this could be beyond making 'interesting' custom ranged weapons is beyond me. Suppose you could mod in a crossbow able to fire all ammo types if you were annoyed with the amount of useless arrows from enemy bowmen :P
Logged

Bricks

  • Bay Watcher
  • Because you never need one brick.
    • View Profile
Re: Multiple ammo types?
« Reply #4 on: October 10, 2009, 01:12:35 pm »

Or on the flip-side, a mod trying to make sieges harder could make enemy ammo completely useless.  Anyway, cool find.
Logged
EMPATHY - being able to feel other peoples' stuff.

Dwarf

  • Bay Watcher
  • The Light shall take us
    • View Profile
Re: Multiple ammo types?
« Reply #5 on: October 10, 2009, 01:14:58 pm »

Would be cool if it was possible to fire armour-piercing bodkins, standard anti-personnel broadhead-tipped bolts and even flame bolts, although that would admittedly be more useful in sieges. But imagine flaming goblin porcupines!

Oh, and dwarves should be intelligent enough not to fire bodkin bolts on that kobold or fire broadhead bolts at this completly plate-clad orc hammer lord.
Logged
Quote from: Akura
Now, if we could only mod Giant War Eagles to carry crossbows, we could do strafing runs on the elves who sold the eagles to us in the first place.

Frogwarrior

  • Bay Watcher
    • View Profile
Re: Multiple ammo types?
« Reply #6 on: October 10, 2009, 03:48:52 pm »

slashing damage arrows for the win
Logged
Lately, I'm proud of MAGMA LANDMINES:
http://www.bay12forums.com/smf/index.php?topic=91789.0
And been a bit smug over generating a world with an elephant monster that got 87763 sentient kills.
http://www.bay12forums.com/smf/index.php?topic=104354.0

QuantumSawdust

  • Bay Watcher
    • View Profile
Re: Multiple ammo types?
« Reply #7 on: October 10, 2009, 07:06:15 pm »

Can ranged weapons be given the ability to launch rocks? Or, rocks the ability to be launched? Worst case scenario, it should be possible to create a workshop reaction that turns 25 rocks into a stack of 'rock projectiles', correct?
Logged

Askot Bokbondeler

  • Bay Watcher
  • please line up orderly
    • View Profile
Re: Multiple ammo types?
« Reply #8 on: October 10, 2009, 07:19:50 pm »

a boulder is huge, statues are carved out of it, you build wals with it, you don't need 25 of them just to make projectiles for your sling, one could give you a stack of a few thousand...i just dont know if that's feasible in df

NewoTigra

  • Bay Watcher
    • View Profile
Re: Multiple ammo types?
« Reply #9 on: October 11, 2009, 09:50:10 am »

Something along these lines I would think (don't know if I got the reaction right though)
Code: [Select]
[REACTION:MAKE_ROCK_PROJECTILES]
[NAME:chisel rock projectiles]
[SMELTER]
[REAGENT:1:STONE:NO_SUBTYPE:STONE:NO_SUBTYPE]
[PRODUCT:100:30:AMMO:NO_SUBTYPE:ROCK_AMMO:OBSIDIAN]
Code: [Select]
[ITEM_AMMO:ITEM_AMMO_ROCK_AMMO]
[NAME:rock projectile:rock projectiles]
[CLASS:ROCK]
[DAMAGE:10:BLUDGEON]
and then add this to any ranged weapon you want to fire it
Code: [Select]
[RANGED:CROSSBOW:ROCK]
Logged