Barotrauma

Barotrauma

Nicht genug Bewertungen
Proximity Fuse Railgun Shell (Proof of Concept)
   
Preis verleihen
Favorisieren
Favorisiert
Entfernen
Dateigröße
Veröffentlicht
Aktualisiert
72.797 KB
12. Juli 2021 um 2:15
18. Dez. 2021 um 14:54
9 Änderungshinweise (anzeigen)

Abonnieren zum Herunterladen
Proximity Fuse Railgun Shell (Proof of Concept)

Beschreibung
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 Kommentare
Hornet 30. Nov. 2021 um 13:19 
okay
Krzeszny  [Autor] 30. Nov. 2021 um 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 um 9:49 
okay i`ll try
ty
Krzeszny  [Autor] 30. Nov. 2021 um 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 um 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 um 13:47 
Hello. Ranges are in hundredths of meters (100 range = 1 meter)
Hornet 29. Nov. 2021 um 9:14 
Hello. I wanted to fix the range of the projectile at the railgun, but I can't understand what it depends on.