#can't mod vanilla projectiles

15 messages · Page 1 of 1 (latest)

echo sluice
#

I was changing the "timetolive" line from 20 to 5, and for some reason it isn't working (as in the game crashes when i threw the flare due to client main-loop). It's in .patch file and no other files are in there.

This just so happen to also make it impossible to add new lines of code, such as speed and what not which is my main goal for the project.

soft torrent
#

Patch files do not work like that

#

You instead need to do

[
  {
    "op" : "replace",
    "path" : "/timeToLive",
    "value" : 5
  }
]```
to change the timeToLive attribute
echo sluice
#

the replace op for changing the timetolive worked, however the add op didn't. Is the path suppose to atleast have 1 location that exists before adding the new path or should it be able to add a new one?

#

P.S. is adding health and a death behaviour to a projectile possible?

soft torrent
#

The speed patch doesn't work because its speed is overridden in flare.thrownitem

#

Also, I don't think it's possible to add health or a death behavior to a projectile

#

There is actionOnReap though

echo sluice
#

what are the files that dictate how far of a projectile is thrown? edit: nevermind, missed typed its path

echo sluice
soft torrent
#

I'd just look in files for projectiles that do something similar to what functionality you need.

echo sluice
#

Hmm yea the speed change worked

echo sluice