Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Are explosive projectiles possible?  (Read 1045 times)

Urist Mchateselves

  • Bay Watcher
    • View Profile
Are explosive projectiles possible?
« on: July 23, 2023, 05:38:18 pm »

I’m modding a new creature in and wanted to know if it’s possible in any way to have it shoot a projectile which explodes upon contact with a creature or the terrain. Is there any way that I can do this?
« Last Edit: July 23, 2023, 07:03:08 pm by Urist Mchateselves »
Logged

Relicspread

  • Bay Watcher
    • View Profile
Re: Are explosive projectiles possible?
« Reply #1 on: July 25, 2023, 01:52:21 pm »

My best suggestion is to attach a syndrome to the projectile. Said syndrome is then set to teach the victim an undirected material emission of some extremely hot material, setting both the emitter and everyone around on fire.

I am aware this idea is not what you asked for. It is convoluted, and it only works if it hits a creature and said creature is afflicted by the syndrome (clothes will usually stop a glob with an on contact syndrome, which is otherwise probably the best bet of projectile spreading syndromes, maybe a sharp, solid projectile could work). Incredibly dumb, I need to test it myself at some point.
Logged

Relicspread

  • Bay Watcher
    • View Profile
Re: Are explosive projectiles possible?
« Reply #2 on: July 25, 2023, 03:01:55 pm »

Here is what I scrambled together so far based on the above. Molten steel seems to heat up thing better than boiling steel but I would probably try a custom, extremely hot dust to get the shock wave effect as well. Steel still doesn't heat thing up quickly enough for immediate combustion so the target has the chance to explode a lot before they die (especially since the cooldown time is at 10). The cinnamon color is key.

Again, probably not what you wanted but putting this nonsense together was fun.



[USE_MATERIAL_TEMPLATE:BOMB:SPIT_TEMPLATE]
      [STATE_NAME:ALL_SOLID:bomb glob]
      [STATE_NAME_ADJ:ALL_SOLID:frozen bomb glob]
      [STATE_NAME:LIQUID:bomb glob]
      [STATE_NAME_ADJ:LIQUID:bomb glob]
      [STATE_NAME:GAS:boiling bomb glob]
      [STATE_NAME_ADJ:GAS:boiling bomb glob]
      [STATE_COLOR:ALL:CINNAMON]
      [PREFIX:NONE]
      [SYNDROME]
         [SYN_NAME:urge to explode]
         [SYN_CONTACT][SYN_INGESTED]
         [CE_CAN_DO_INTERACTION:START:0:ABRUPT]
            [CDI:ADV_NAME:explode]
            [CDI:INTERACTION:MATERIAL_EMISSION]
            [CDI:USAGE_HINT:ATTACK]
            [CDI:VERB:explode:explodes:NA]
            [CDI:BP_REQUIRED:BY_CATEGORY:BODY_UPPER]
            [CDI:MATERIAL:INORGANIC:STEEL:UNDIRECTED_VAPOR]
            [CDI:WAIT_PERIOD:10]
   [CAN_DO_INTERACTION:MATERIAL_EMISSION]
      [CDI:ADV_NAME:bomb glob spit]
      [CDI:INTERACTION:MATERIAL_EMISSION]
      [CDI:USAGE_HINT:ATTACK]
      [CDI:BP_REQUIRED:BY_CATEGORY:MOUTH]
      [CDI:MATERIAL:LOCAL_CREATURE_MAT:BOMB:LIQUID_GLOB]
      [CDI:VERB:spit bomb:spits a bomb:NA]
      [CDI:TARGET:C:LINE_OF_SIGHT]
      [CDI:TARGET_RANGE:C:15]
      [CDI:MAX_TARGET_NUMBER:C:1]
      [CDI:WAIT_PERIOD:30]
Logged

Urist Mchateselves

  • Bay Watcher
    • View Profile
Re: Are explosive projectiles possible?
« Reply #3 on: July 25, 2023, 05:53:54 pm »

Yeah, I had figured that this was a way I could do it, but I ultimately decided against it and went instead for solid projectiles with really high density until the myth and magic update gives us more flexibility when it comes to interactions. Thanks for taking the time to reply though!  :)
Logged

joostheger

  • Bay Watcher
    • View Profile
Re: Are explosive projectiles possible?
« Reply #4 on: August 22, 2023, 06:43:54 am »

What about arrows? they might break on impact. Can a broken arrow be given other properties as whole arrows? Can they be of another material perhaps? in that case, you maybe can make very fragile arrows, which upon breaking burst into flames.
Logged

Urist Mchateselves

  • Bay Watcher
    • View Profile
Re: Are explosive projectiles possible?
« Reply #5 on: August 22, 2023, 04:37:27 pm »

Custom creatures unfortunately cannot shoot custom projectiles (including arrows). It’s all hard-coded stuff. And I don’t think you can make arrows that can consistently burst into flames upon impact either.
Logged

Urist Mchateselves

  • Bay Watcher
    • View Profile
Re: Are explosive projectiles possible?
« Reply #6 on: October 17, 2023, 08:52:35 pm »

For anyone who stumbles upon this thread in the future: no, it is not possible in vanilla Df. It is however, kind of possible using Df hack.
Logged

Digganob

  • Bay Watcher
    • View Profile
Re: Are explosive projectiles possible?
« Reply #7 on: October 18, 2023, 11:43:06 am »

If it's possible, maybe you can have a custom material increase in temperature upon contact with skin tissues?
Logged

joostheger

  • Bay Watcher
    • View Profile
Re: Are explosive projectiles possible?
« Reply #8 on: October 18, 2023, 01:05:13 pm »

Probably someone has thought about this, but this I thought:
A liquid emission, which quickly heats up (spec_heat = low) in room temperature and ignites.

so something like:
melt_temp = 10000
boil_temp = 10005
spec_heat = 10 (any kow)
ignite_temp = 10001

This means it is emissioned at 10000, it starts to heat up while flying, ignites, and a few ticks later is evaporates, creating (maybe) a big woosh)
Logged

joostheger

  • Bay Watcher
    • View Profile
Re: Are explosive projectiles possible?
« Reply #9 on: October 23, 2023, 08:41:12 am »

another idea: emission that shouts an ammount of highly combustable material, which after some seconds with evaporate. If you shoot multiple emissions with different spec_heat, it creates a longer lingering cloud. Then, together with the combustable material, shoot a (tiny but) hot solid / liquid material the same way.

Effect: the combustible creates multiple clouds, which are ignited by the hot material.
Logged