Barotrauma
No hay suficientes valoraciones
Proximity Fuse Railgun Shell (Proof of Concept)
   
Premiar
Favoritos
Favorito
Quitar
Tamaño
Publicado el
Actualizado el
72.797 KB
12 JUL 2021 a las 2:15
18 DIC 2021 a las 14:54
9 notas sobre cambios ( ver )

Suscríbete para descargar
Proximity Fuse Railgun Shell (Proof of Concept)

Descripción
Functional and balanced proximity-fused railgun shell, has distinctive sprites, must be loaded with explosive . Not tested in multiplayer.

Made from steel and FPGA.

Can be used in campaigns, or for reverse engineering. I added lots of comments to the XML on how it works.
7 comentarios
Hornet 30 NOV 2021 a las 13:19 
okay
Krzeszny  [autor] 30 NOV 2021 a las 12:03 
I don't recommend doing that, a delay is much easier, but let me know if you make it work.

This is how you apply a tag:
<StatusEffect type="OnWearing" target="Character" stackable="false" duration="0.1" tags="hey_im_a_tag" />

And this is how you read a tag
<StatusEffect type="OnContained" target="Character" SpeedMultiplier="0.1" setvalue="true">
<Conditional HasStatusTag="hey_im_a_tag" />
</StatusEffect>

to read if something DOESN'T have a tag you do HasStatusTag="ne hey_im_a_tag"
Hornet 30 NOV 2021 a las 9:49 
okay i`ll try
ty
Krzeszny  [autor] 30 NOV 2021 a las 7:35 
Wait, flight range? I'm not sure what you're trying to do, is it making the projectile self-destruct?

Normally (actually, always because nobody uses range for that) projectiles are set to self-destruct after a delay. In this case, 10 seconds from firing (delay="10"). Detecting range from the railgun would be hard. You'd need to apply a tag to the firing railgun and detect the range from that tag. Might be possible, but is it what you're trying to do? And why?
Hornet 30 NOV 2021 a las 0:45 
I just don't see in the code where it is written in you. I do not know the name of the variable responsible for the flight range, at first I thought it was "launchimpulse". But no.
Krzeszny  [autor] 29 NOV 2021 a las 13:47 
Hello. Ranges are in hundredths of meters (100 range = 1 meter)
Hornet 29 NOV 2021 a las 9:14 
Hello. I wanted to fix the range of the projectile at the railgun, but I can't understand what it depends on.