I've gotten a few comments about which mod I use to edit item configs. It is DragonLens (link in description, since apparently all links get nuked in my comments section.)
You explained this really well in 3 minutes. What a neat thing. Also wtf are these bots in the comments, with the nsfw profile pics and ending their messages in a single emoji?
At some point Terrasteel is gonna dig through entire Terraria's code and gain enough knowledge to join Re-Logic as developer or make Terraria 2 by himself.
Pretty sure that adding another random velocity vector is much cheaper in computing power than figuring out the current direction vector, doing rotational or vector maths to randomise the angle, and then also adding a slight random speed in the direction the bullet is going. Very clever implementation.
It technically is, but math in general is pretty quick and this isn't a calculation that's done with such volume that it'd need this for optimization. I'm not sure why they did it this way, but it does have the intended effect barring that initial velocity influences spread so it's a neat way of doing it.
I actually feel like this method of bullet spread is a lot more elegant. It can be compressed into a very readable one liner in code, it automatically makes it so that more bullets fire in the middle than the edges without even more slow math, it mostly avoids unnecessary trig (depends how it works under the hood), it's just so simple
I was prepared to learn about Terraria Code Spaghetti but instead walked away in awe of genius through implementation of bullet spread is. Such an efficient way of doing things!
This honestly seems like a better way to implement bullet spread than the standard. One function of randomization, rather than two, one of which is only used part of the time. It's also not done in a way that would actually break, unless someone specifically added a TON of velocity indiscriminately, but that isn't even something most players even think about, so the chances of someone modding in a breaking amount of velocity would be pretty slim in most games. And it's not like velocity is something the Devs would have reason to mess with a lot either, so there's not much chance of it breaking because a new Dev did something wrong. It seems fairly idiot-proof, overall. Not sure it'd work as well in a three dimensional game, but here, it seems pretty perfect.
iirc, guns like the Chain gun that move in your hand actually randomize bullet trajectory by rotating where the bullet is fired out of the gun. Thats how i make my guns innacurate while modding as well.
This would be a really cool weapon for Re-Logic to add. It'd be unreliable because you can't aim whatsoever, but it could have high damage. I could see it being pretty good for crowd control or The Destroyer. Honestly, I'd love a mod that adds a bunch of craftable items that make use of quirks in the game's programming and unusually minmaxed stats like this to make unique and weird weapons, that'd be super fun.
Honestly a shotgun with that 0 velocity mechanic only affected by randomisation would be pretty interesting, though it would probably have to do a lot more damage to compensate for accuracy. Maybe someone could pitch that idea to relogic.
didn’t know that higher velocity reduced effective spread i guess this makes +velocity modified guns more effective at applying damage to smaller targets as they’ll miss less shots due to spread, resulting in more DPS from all shots hitting it makes sense if you think about it
Can you show us how much efficiency we are losing by the fact that the shooromite(don't know how to spell it) armor's effect literally requires that we stand still without attacking to slowly start activating its effect? Please. The other class sets got sick useful effects while ranged has to take free damage for a buff that will go away as soon as he moves.
Just something I noted: It's kinda crazy how shotguns are consistently some of the best ranged weapons at every single stage a new one is obtainable, huh?
That velocity increase decreasing spread trick would then only effect the Raw bullet velocity and not the velocity multiplier, correct? Because the multiplier is just extra updates. I assume that's why you used venom bullets instead of high velocity bullets because they're only faster than venom bullets because of their high multiplier.
Your videos are actually very helpful for modding. I don't understand some mechanics and things in terraria and having these videos has helped with making items and such.
to fix this all they had to do was multiply the vector that's added by the velocity of the bullet coming out the gun, right? since now the vector is multiplied by 0, the bullet stays stationary thing is red probably didnt expect people to do this
I know the quad barrel shotgun has a quirk where one bullet always heads directly towards the cursor. I presume they implemented that by just having one bullet not get the spread vector applied?
How exactly do the random shotgun bullets fire with more speed? Does "more randomization" mean that the magnitude of the random vectors have a larger potential range?
gotta say the editing is looking crisp as always but you never read my comments when i tell you i can hear you click to start reading your script in your videos and its not a hard fix man cmon
Off-topic but I've been watching your videos for a while now and as I am learning Adobe After Effects I am starting to also figure out how your videos are (or could be) made! It's a fun little puzzle. Before I was trying to figure out how you would make it work in a video editor like Premiere or Davinci Resolve - still possible, but the process is certainly different.
Okay wow I am very surprised I immediately guessed how it workes as soon as you've shown the 0 speed demo! This way of implementing random spread is very interesting actually. Wonder why did they choose it instead of just bumping the bullets slightly at a % of their speed...
honestly, i think the way that terraria does bullet spread is actually kind of genius. i don't really know much about coding but i know from my software engineer dad that code should be as short and readable as possible, at least, without compromising effectiveness. longer code leads to more potential bugs and makes things harder to fix. from the sound of it, terraria's bullet spread method sounds shorter than what games normally use. i hope that if i'm ever able to figure out programming and make a game that i can remember how bullet spread is done in terraria and do something similar.
Now this is the sort of useless knowledge that really helps to find how the ideas are input into the game! I wonder what other nifty tricks that red and the dev team used to get their desired results!
The unique way terraria is coded reminds me of tf2's... Uh, _strange_ code.(of course, tf2's code is a LOT more unstable, removing a coconut literally breaks the game)
Really annoying music loop. I didn't hear a word you said, nor process what was being shown on screen after the first loop. I tried watching that part again. It's like a flashbang. And since I already understood everything after you said a random vector is added instead of a random angle, the repeating music takes up even more attention (proportionally).
@@patheticbread6861 The way you phrased that makes you sound mean. I hope that was unintentional. It is not my hearing that is the problem. (Simplified,) the audio processing part of my brain getting distracted by a piece of music I have heard hundreds of times, suddenly being different. It is difficult to find a comparison you would relate to without knowing how you function. Please remember that everyone varies in how they function. The idea of "that's how everyone else works" is ignorant, harmful, and 99% of the time, it's false. To clarify, I am not calling you those things. I don't know enough about you to form opinions of that magnitude about you.
Im suprised no accesory or armor makes so you're more accurate, even in mods, seeing as the recoil is the biggest downside of most weapons, i imagine it's hard coded into the guns and its hard to make less noticeanle?