Barotrauma

Barotrauma

Nedostatek hodnocení
Proximity Fuse Railgun Shell (Proof of Concept)
   
Ocenit
Přidat do oblíbených
Oblíbeno
Odebrat z oblíbených
Velikost souboru
Přidáno
Aktualizováno
72.797 KB
12. čvc. 2021 v 2.15
18. pro. 2021 v 14.54
Poznámky ke změnám (9) – zobrazit

Klikněte na „Odebírat“ pro stažení položky
Proximity Fuse Railgun Shell (Proof of Concept)

Popis
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.
Počet komentářů: 7
Hornet 30. lis. 2021 v 13.19 
okay
Krzeszny  [autor] 30. lis. 2021 v 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. lis. 2021 v 9.49 
okay i`ll try
ty
Krzeszny  [autor] 30. lis. 2021 v 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. lis. 2021 v 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. lis. 2021 v 13.47 
Hello. Ranges are in hundredths of meters (100 range = 1 meter)
Hornet 29. lis. 2021 v 9.14 
Hello. I wanted to fix the range of the projectile at the railgun, but I can't understand what it depends on.