Jump to content

OpenJK Cellprocesses Custom Code tweaks 0.0.0.ifitbreaksdontblameme.0.01

   (0 reviews)

About This File

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.

This file is not developed, distributed, or endorsed by Activision Publishing, Inc., Raven Software, Lucasfilm Ltd., Disney, Inc., or any of their affiliated entities. All trademarks, copyrights, and intellectual property rights belong to their respective owners. Star Wars®, Jedi®, and Jedi Knight® are registered trademarks of Lucasfilm Ltd.™ and Disney, Inc.™. This file is intended for educational, non-commercial, or fan-based use under the principles of fair use. No copyright infringement is intended. Any claims of ownership or DMCA takedown requests can be submitted here.


User Feedback

Create an account or sign in to leave a review

You need to be a member in order to leave a review

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

There are no reviews to display.

×
×
  • Create New...