Cellprocesses
-
Posts
14 -
Joined
-
Last visited
Content Type
Profiles
News Articles
Tutorials
Forums
Downloads
Files posted by Cellprocesses
-
OpenJK Cellprocesses Custom Code tweaks
By Cellprocesses in Single Player
Some minor improvements on the base engine, just basic source files edited that you can drop into your code/game folder and build for a different experience
changelog so far:
-Redefined all weapons damage, muzzle velocity, shots per blast for shotgun, etc. Strongly reccomend Ultimate Weapons mod with this for best experience
-Defined scale factors in wp_saber.h for scaling up or down force push range, how hard force push knocks back, force choke range, force choke damage, force protect duration, force absorb duration, force see duration. Mostly just housekeeping the code there so force powers can be tuned easily with new builds.
-Force push now has a sliding scale of how hard it pushes back opponents. Level 1 is the basic knock them on their ass youre used to, level 3 literally hurls them across the room like The Force Unleashed.
int forceKnockbackByPushLevel(int pushLevel) { switch(pushLevel) { case 0: return 0; case 1: return forceKnockbackBase; // base value is 200 case 2: return multiplyAndRoundInteger(1.5, forceKnockbackBase); case 3: return multiplyAndRoundInteger(2.5, forceKnockbackBase); case 4: return multiplyAndRoundInteger(3.5, forceKnockbackBase); // quadding up to 800 knockback was a bit insane, just force pull // on a group of stormtroopers was literally sending them 200 m // off a cliff behind the player } } -Force push blocking isnt 100% effective in duels. Added a probability function for dice rolls, jedi opponents have to pass a weighted dice roll to not be pushed back by force push.
-If youve ever been annoyed by how jedi\reborn opponents can stand there all day and shrug at you while you fire the sniper rifle at them, today is your lucky day! Added a probability check for the sniper rifle dodge move so it only happens some of the time. Obviously not weighted correctly right now at 50/50.
Part of the logic of probability checks is to make the saber wielding opponents seem more human, it doesnt make any sense how the player usually gets dissolved 3-4 times a game by a well timed sniper blast but the same weapon in the hands of the player is useless against jedi opponents. Same idea for force push, etc, etc.
51 downloads
0 comments
Updated