Ravenfield

Ravenfield

Ravenfield Workshop
Get new maps, weapons and vehicles for Ravenfield here!
Learn More
is there a way to modify ExplodingProjectile.cs file or create a new kind of projectile?
i have a plan of making a armor penetrating system, it can simulate armor thickness and hit angle. but the ExplodingProjectile system moves and rotates the projectiles when they hit, this ruined my plan.
i want to know is there a way to keep projectile's position and direction when it hits?

i have little knowledge of scripts, but it seems these two lines of code cause the projectile to move and rotate when hit. i tried to delete them, but it seems all the modifications to .cs files are not working

this.transform.position = point;
this.transform.rotation = Quaternion.LookRotation(normal);
< >
Showing 1-3 of 3 comments
AoiYuui 115 6 Sep, 2023 @ 1:53am 
no, you have to use Ravenscript
CS wont change cause the game does not read the CS that you export
Enoki Sachi 3 6 Sep, 2023 @ 8:41am 
i added a Scripted Behaviour to the projectile but how should i write to override what happen when it hits, there is no game event called onProjectileHit or something alike.
i wrote an Update() script, it works fine at low velocity but if the velocity goes higher than 30m/s it will not be triggered properly because of the low update rate:steamsad:
Enoki Sachi 3 7 Sep, 2023 @ 10:00am 
I have already achieved this in another way:slimehappy::slimehappy:
< >
Showing 1-3 of 3 comments
Per page: 1530 50