Superjumps code

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
SHOOT ME DEAD !
Private Recruit
Posts: 22
Joined: Wed Jun 17, 2009 10:53 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Superjumps code

Post by SHOOT ME DEAD ! »

Super jumps is something that Ive taken to adding to my mods if the map suits. I make regular levels, but also consider adding in a superjump level just like I would add a jedi brawl. This can make a dramatic improvement to a mods success, because even though it nice to have a very good mod that you are proud of, you will also find people absolutely love to jump around and act stupid as well. Its kind of like the way I always throw in a level with infin jets and jedi jumps so the glitchers can nose around the map and have fun with extreme aero duels.

This code gives every unit in the default setup a "super jump" as well as gives the people jet packs for soft landings. Basically flames shoot out of everybody, and it looks however it looks, which in most cases is surprisingly good. It is also super fun how much the bots seem to enjoy their jump jets and use them to attack you from above. These super jumps helps make larger maps more enjoyable. Not only were the jumps fun, they got you around alot faster. So you may notice that the speeds have been slightly increased. The other thing is a tiny trickle of addhealth so every unit can attempt to seek shelter and heal up, a desireable feature if its a larger map, rather than spending your time running out to die. Its not alot of addhealth, but its there and it doesnt ruin the game or make people harder to kill. Ive upped the health a bit from the original, not much, but in this kind of fun it was better to give everyone the same health and speeds as a starting point.

This code has probably been addessed before but the real point of this topic is to give you a big cut and paste to start your superjump code.

For the jet fx and sounds I use the ep3 jet trooper and so its class must be loaded for the runtime changes to work

ReadDataFile("SIDE\\rep.lvl",
"rep_inf_ep3_jettrooper")

So.. in your ScriptPostLoad() function add the following code :

Hidden/Spoiler:
SetClassProperty("all_inf_rifleman", "MaxSpeed", 8.0)
SetClassProperty("all_inf_rifleman", "MaxStrafeSpeed", 6.0)
SetClassProperty("all_inf_rifleman", "MaxTurnSpeed", 5.5)

SetClassProperty("all_inf_rifleman", "JumpHeight", 20.0)
SetClassProperty("all_inf_rifleman", "JumpForwardSpeedFactor", 2.0)
SetClassProperty("all_inf_rifleman", "JumpStrafeSpeedFactor", 2.0)
SetClassProperty("all_inf_rifleman", "MaxHealth", 800)
SetClassProperty("all_inf_rifleman", "AddHealth", 10)

SetClassProperty("all_inf_rifleman", "JetJump", 5.0)
SetClassProperty("all_inf_rifleman", "JetPush", 8.0)
SetClassProperty("all_inf_rifleman", "JetAcceleration", 30.0)
SetClassProperty("all_inf_rifleman", "JetEffect", "rep_sfx_jetpack")
SetClassProperty("all_inf_rifleman", "JetType", "hover")
SetClassProperty("all_inf_rifleman", "JetFuelRechargeRate", 0.08)
SetClassProperty("all_inf_rifleman", "JetFuelCost", 0.18)
SetClassProperty("all_inf_rifleman", "JetFuelInitialCost", 0.15)
SetClassProperty("all_inf_rifleman", "JetFuelMinBorder", 0.14)
--SetClassProperty("all_inf_rifleman", "ControlSpeed", "jet 1.50 1.25 1.25") //default values not being used
SetClassProperty("all_inf_rifleman", "ControlSpeed", "jet 2.00 1.30 1.30")

SetClassProperty("all_inf_rifleman", "EngineSound", "rep_inf_Jetpack_engine_parameterized")
SetClassProperty("all_inf_rifleman", "TurnOnSound", "rep_weap_jetpack_turnon")
SetClassProperty("all_inf_rifleman", "TurnOffSound", "rep_weap_jetpack_turnoff")
SetClassProperty("all_inf_rifleman", "TurnOffTime", 0.0)

-------------------

SetClassProperty("all_inf_rocketeer", "MaxSpeed", 8.0)
SetClassProperty("all_inf_rocketeer", "MaxStrafeSpeed", 6.0)
SetClassProperty("all_inf_rocketeer", "MaxTurnSpeed", 5.5)

SetClassProperty("all_inf_rocketeer", "JumpHeight", 20.0)
SetClassProperty("all_inf_rocketeer", "JumpForwardSpeedFactor", 2.0)
SetClassProperty("all_inf_rocketeer", "JumpStrafeSpeedFactor", 2.0)
SetClassProperty("all_inf_rocketeer", "MaxHealth", 800)
SetClassProperty("all_inf_rocketeer", "AddHealth", 10)

SetClassProperty("all_inf_rocketeer", "JetJump", 5.0)
SetClassProperty("all_inf_rocketeer", "JetPush", 8.0)
SetClassProperty("all_inf_rocketeer", "JetAcceleration", 30.0)
SetClassProperty("all_inf_rocketeer", "JetEffect", "rep_sfx_jetpack")
SetClassProperty("all_inf_rocketeer", "JetType", "hover")
SetClassProperty("all_inf_rocketeer", "JetFuelRechargeRate", 0.08)
SetClassProperty("all_inf_rocketeer", "JetFuelCost", 0.18)
SetClassProperty("all_inf_rocketeer", "JetFuelInitialCost", 0.15)
SetClassProperty("all_inf_rocketeer", "JetFuelMinBorder", 0.14)
SetClassProperty("all_inf_rocketeer", "ControlSpeed", "jet 2.00 1.30 1.30")

SetClassProperty("all_inf_rocketeer", "EngineSound", "rep_inf_Jetpack_engine_parameterized")
SetClassProperty("all_inf_rocketeer", "TurnOnSound", "rep_weap_jetpack_turnon")
SetClassProperty("all_inf_rocketeer", "TurnOffSound", "rep_weap_jetpack_turnoff")
SetClassProperty("all_inf_rocketeer", "TurnOffTime", 0.0)

------------------

SetClassProperty("all_inf_sniper", "MaxSpeed", 8.0)
SetClassProperty("all_inf_sniper", "MaxStrafeSpeed", 6.0)
SetClassProperty("all_inf_sniper", "MaxTurnSpeed", 5.5)

SetClassProperty("all_inf_sniper", "JumpHeight", 20.0)
SetClassProperty("all_inf_sniper", "JumpForwardSpeedFactor", 2.0)
SetClassProperty("all_inf_sniper", "JumpStrafeSpeedFactor", 2.0)
SetClassProperty("all_inf_sniper", "MaxHealth", 800)
SetClassProperty("all_inf_sniper", "AddHealth", 10)

SetClassProperty("all_inf_sniper", "JetJump", 5.0)
SetClassProperty("all_inf_sniper", "JetPush", 8.0)
SetClassProperty("all_inf_sniper", "JetAcceleration", 30.0)
SetClassProperty("all_inf_sniper", "JetEffect", "rep_sfx_jetpack")
SetClassProperty("all_inf_sniper", "JetType", "hover")
SetClassProperty("all_inf_sniper", "JetFuelRechargeRate", 0.08)
SetClassProperty("all_inf_sniper", "JetFuelCost", 0.18)
SetClassProperty("all_inf_sniper", "JetFuelInitialCost", 0.15)
SetClassProperty("all_inf_sniper", "JetFuelMinBorder", 0.14)
SetClassProperty("all_inf_sniper", "ControlSpeed", "jet 2.00 1.30 1.30")

SetClassProperty("all_inf_sniper", "EngineSound", "rep_inf_Jetpack_engine_parameterized")
SetClassProperty("all_inf_sniper", "TurnOnSound", "rep_weap_jetpack_turnon")
SetClassProperty("all_inf_sniper", "TurnOffSound", "rep_weap_jetpack_turnoff")
SetClassProperty("all_inf_sniper", "TurnOffTime", 0.0)

-------------------

SetClassProperty("all_inf_engineer", "MaxSpeed", 8.0)
SetClassProperty("all_inf_engineer", "MaxStrafeSpeed", 6.0)
SetClassProperty("all_inf_engineer", "MaxTurnSpeed", 5.5)

SetClassProperty("all_inf_engineer", "JumpHeight", 20.0)
SetClassProperty("all_inf_engineer", "JumpForwardSpeedFactor", 2.0)
SetClassProperty("all_inf_engineer", "JumpStrafeSpeedFactor", 2.0)
SetClassProperty("all_inf_engineer", "MaxHealth", 700)
SetClassProperty("all_inf_engineer", "WeaponAmmo4", 1)

SetClassProperty("all_inf_engineer", "JetJump", 5.0)
SetClassProperty("all_inf_engineer", "JetPush", 8.0)
SetClassProperty("all_inf_engineer", "JetAcceleration", 30.0)
SetClassProperty("all_inf_engineer", "JetEffect", "rep_sfx_jetpack")
SetClassProperty("all_inf_engineer", "JetType", "hover")
SetClassProperty("all_inf_engineer", "JetFuelRechargeRate", 0.08)
SetClassProperty("all_inf_engineer", "JetFuelCost", 0.18)
SetClassProperty("all_inf_engineer", "JetFuelInitialCost", 0.15)
SetClassProperty("all_inf_engineer", "JetFuelMinBorder", 0.14)
SetClassProperty("all_inf_engineer", "ControlSpeed", "jet 2.00 1.30 1.30")

SetClassProperty("all_inf_engineer", "EngineSound", "rep_inf_Jetpack_engine_parameterized")
SetClassProperty("all_inf_engineer", "TurnOnSound", "rep_weap_jetpack_turnon")
SetClassProperty("all_inf_engineer", "TurnOffSound", "rep_weap_jetpack_turnoff")
SetClassProperty("all_inf_engineer", "TurnOffTime", 0.0)

-------------------

SetClassProperty("all_inf_officer", "PointsToUnlock", 0)
SetClassProperty("all_inf_officer", "MaxSpeed", 8.0)
SetClassProperty("all_inf_officer", "MaxStrafeSpeed", 6.0)
SetClassProperty("all_inf_officer", "MaxTurnSpeed", 5.5)

SetClassProperty("all_inf_officer", "JumpHeight", 20.0)
SetClassProperty("all_inf_officer", "JumpForwardSpeedFactor", 2.0)
SetClassProperty("all_inf_officer", "JumpStrafeSpeedFactor", 2.0)
SetClassProperty("all_inf_officer", "MaxHealth", 800)
SetClassProperty("all_inf_officer", "AddHealth", 10)

SetClassProperty("all_inf_officer", "JetJump", 5.0)
SetClassProperty("all_inf_officer", "JetPush", 8.0)
SetClassProperty("all_inf_officer", "JetAcceleration", 30.0)
SetClassProperty("all_inf_officer", "JetEffect", "rep_sfx_jetpack")
SetClassProperty("all_inf_officer", "JetType", "hover")
SetClassProperty("all_inf_officer", "JetFuelRechargeRate", 0.08)
SetClassProperty("all_inf_officer", "JetFuelCost", 0.18)
SetClassProperty("all_inf_officer", "JetFuelInitialCost", 0.15)
SetClassProperty("all_inf_officer", "JetFuelMinBorder", 0.14)
SetClassProperty("all_inf_officer", "ControlSpeed", "jet 2.00 1.30 1.30")

SetClassProperty("all_inf_officer", "EngineSound", "rep_inf_Jetpack_engine_parameterized")
SetClassProperty("all_inf_officer", "TurnOnSound", "rep_weap_jetpack_turnon")
SetClassProperty("all_inf_officer", "TurnOffSound", "rep_weap_jetpack_turnoff")
SetClassProperty("all_inf_officer", "TurnOffTime", 0.0)

-------------------

SetClassProperty("all_inf_wookiee", "PointsToUnlock", 0)
SetClassProperty("all_inf_wookiee", "MaxSpeed", 8.0)
SetClassProperty("all_inf_wookiee", "MaxStrafeSpeed", 6.0)
SetClassProperty("all_inf_wookiee", "MaxTurnSpeed", 5.5)

SetClassProperty("all_inf_wookiee", "JumpHeight", 20.0)
SetClassProperty("all_inf_wookiee", "JumpForwardSpeedFactor", 2.0)
SetClassProperty("all_inf_wookiee", "JumpStrafeSpeedFactor", 2.0)
SetClassProperty("all_inf_wookiee", "MaxHealth", 800)
SetClassProperty("all_inf_wookiee", "AddHealth", 10)

SetClassProperty("all_inf_wookiee", "JetJump", 5.0)
SetClassProperty("all_inf_wookiee", "JetPush", 8.0)
SetClassProperty("all_inf_wookiee", "JetAcceleration", 30.0)
SetClassProperty("all_inf_wookiee", "JetEffect", "rep_sfx_jetpack")
SetClassProperty("all_inf_wookiee", "JetType", "hover")
SetClassProperty("all_inf_wookiee", "JetFuelRechargeRate", 0.08)
SetClassProperty("all_inf_wookiee", "JetFuelCost", 0.18)
SetClassProperty("all_inf_wookiee", "JetFuelInitialCost", 0.15)
SetClassProperty("all_inf_wookiee", "JetFuelMinBorder", 0.14)
SetClassProperty("all_inf_wookiee", "ControlSpeed", "jet 2.00 1.30 1.30")

SetClassProperty("all_inf_wookiee", "EngineSound", "rep_inf_Jetpack_engine_parameterized")
SetClassProperty("all_inf_wookiee", "TurnOnSound", "rep_weap_jetpack_turnon")
SetClassProperty("all_inf_wookiee", "TurnOffSound", "rep_weap_jetpack_turnoff")
SetClassProperty("all_inf_wookiee", "TurnOffTime", 0.0)

-------------------

SetClassProperty("imp_inf_rifleman", "MaxSpeed", 8.0)
SetClassProperty("imp_inf_rifleman", "MaxStrafeSpeed", 6.0)
SetClassProperty("imp_inf_rifleman", "MaxTurnSpeed", 5.5)

SetClassProperty("imp_inf_rifleman", "JumpHeight", 20.0)
SetClassProperty("imp_inf_rifleman", "JumpForwardSpeedFactor", 2.0)
SetClassProperty("imp_inf_rifleman", "JumpStrafeSpeedFactor", 2.0)
SetClassProperty("imp_inf_rifleman", "MaxHealth", 800)
SetClassProperty("imp_inf_rifleman", "AddHealth", 10)

SetClassProperty("imp_inf_rifleman", "JetJump", 5.0)
SetClassProperty("imp_inf_rifleman", "JetPush", 8.0)
SetClassProperty("imp_inf_rifleman", "JetAcceleration", 30.0)
SetClassProperty("imp_inf_rifleman", "JetEffect", "rep_sfx_jetpack")
SetClassProperty("imp_inf_rifleman", "JetType", "hover")
SetClassProperty("imp_inf_rifleman", "JetFuelRechargeRate", 0.08)
SetClassProperty("imp_inf_rifleman", "JetFuelCost", 0.18)
SetClassProperty("imp_inf_rifleman", "JetFuelInitialCost", 0.15)
SetClassProperty("imp_inf_rifleman", "JetFuelMinBorder", 0.14)
SetClassProperty("imp_inf_rifleman", "ControlSpeed", "jet 2.00 1.30 1.30")

SetClassProperty("imp_inf_rifleman", "EngineSound", "rep_inf_Jetpack_engine_parameterized")
SetClassProperty("imp_inf_rifleman", "TurnOnSound", "rep_weap_jetpack_turnon")
SetClassProperty("imp_inf_rifleman", "TurnOffSound", "rep_weap_jetpack_turnoff")
SetClassProperty("imp_inf_rifleman", "TurnOffTime", 0.0)

-------------------

SetClassProperty("imp_inf_rocketeer", "MaxSpeed", 8.0)
SetClassProperty("imp_inf_rocketeer", "MaxStrafeSpeed", 6.0)
SetClassProperty("imp_inf_rocketeer", "MaxTurnSpeed", 5.5)

SetClassProperty("imp_inf_rocketeer", "JumpHeight", 20.0)
SetClassProperty("imp_inf_rocketeer", "JumpForwardSpeedFactor", 2.0)
SetClassProperty("imp_inf_rocketeer", "JumpStrafeSpeedFactor", 2.0)
SetClassProperty("imp_inf_rocketeer", "MaxHealth", 800)
SetClassProperty("imp_inf_rocketeer", "AddHealth", 10)

SetClassProperty("imp_inf_rocketeer", "JetJump", 5.0)
SetClassProperty("imp_inf_rocketeer", "JetPush", 8.0)
SetClassProperty("imp_inf_rocketeer", "JetAcceleration", 30.0)
SetClassProperty("imp_inf_rocketeer", "JetEffect", "rep_sfx_jetpack")
SetClassProperty("imp_inf_rocketeer", "JetType", "hover")
SetClassProperty("imp_inf_rocketeer", "JetFuelRechargeRate", 0.08)
SetClassProperty("imp_inf_rocketeer", "JetFuelCost", 0.18)
SetClassProperty("imp_inf_rocketeer", "JetFuelInitialCost", 0.15)
SetClassProperty("imp_inf_rocketeer", "JetFuelMinBorder", 0.14)
SetClassProperty("imp_inf_rocketeer", "ControlSpeed", "jet 2.00 1.30 1.30")

SetClassProperty("imp_inf_rocketeer", "EngineSound", "rep_inf_Jetpack_engine_parameterized")
SetClassProperty("imp_inf_rocketeer", "TurnOnSound", "rep_weap_jetpack_turnon")
SetClassProperty("imp_inf_rocketeer", "TurnOffSound", "rep_weap_jetpack_turnoff")
SetClassProperty("imp_inf_rocketeer", "TurnOffTime", 0.0)

-------------------

SetClassProperty("imp_inf_sniper", "MaxSpeed", 8.0)
SetClassProperty("imp_inf_sniper", "MaxStrafeSpeed", 6.0)
SetClassProperty("imp_inf_sniper", "MaxTurnSpeed", 5.5)

SetClassProperty("imp_inf_sniper", "JumpHeight", 20.0)
SetClassProperty("imp_inf_sniper", "JumpForwardSpeedFactor", 2.0)
SetClassProperty("imp_inf_sniper", "JumpStrafeSpeedFactor", 2.0)
SetClassProperty("imp_inf_sniper", "MaxHealth", 800)
SetClassProperty("imp_inf_sniper", "AddHealth", 10)

SetClassProperty("imp_inf_sniper", "JetJump", 5.0)
SetClassProperty("imp_inf_sniper", "JetPush", 8.0)
SetClassProperty("imp_inf_sniper", "JetAcceleration", 30.0)
SetClassProperty("imp_inf_sniper", "JetEffect", "rep_sfx_jetpack")
SetClassProperty("imp_inf_sniper", "JetType", "hover")
SetClassProperty("imp_inf_sniper", "JetFuelRechargeRate", 0.08)
SetClassProperty("imp_inf_sniper", "JetFuelCost", 0.18)
SetClassProperty("imp_inf_sniper", "JetFuelInitialCost", 0.15)
SetClassProperty("imp_inf_sniper", "JetFuelMinBorder", 0.14)
SetClassProperty("imp_inf_sniper", "ControlSpeed", "jet 2.00 1.30 1.30")

SetClassProperty("imp_inf_sniper", "EngineSound", "rep_inf_Jetpack_engine_parameterized")
SetClassProperty("imp_inf_sniper", "TurnOnSound", "rep_weap_jetpack_turnon")
SetClassProperty("imp_inf_sniper", "TurnOffSound", "rep_weap_jetpack_turnoff")
SetClassProperty("imp_inf_sniper", "TurnOffTime", 0.0)

-------------------

SetClassProperty("imp_inf_engineer", "MaxSpeed", 8.0)
SetClassProperty("imp_inf_engineer", "MaxStrafeSpeed", 6.0)
SetClassProperty("imp_inf_engineer", "MaxTurnSpeed", 5.5)

SetClassProperty("imp_inf_engineer", "JumpHeight", 20.0)
SetClassProperty("imp_inf_engineer", "JumpForwardSpeedFactor", 2.0)
SetClassProperty("imp_inf_engineer", "JumpStrafeSpeedFactor", 2.0)
SetClassProperty("imp_inf_engineer", "MaxHealth", 700)
SetClassProperty("imp_inf_engineer", "WeaponAmmo4", 1)

SetClassProperty("imp_inf_engineer", "JetJump", 5.0)
SetClassProperty("imp_inf_engineer", "JetPush", 8.0)
SetClassProperty("imp_inf_engineer", "JetAcceleration", 30.0)
SetClassProperty("imp_inf_engineer", "JetEffect", "rep_sfx_jetpack")
SetClassProperty("imp_inf_engineer", "JetType", "hover")
SetClassProperty("imp_inf_engineer", "JetFuelRechargeRate", 0.08)
SetClassProperty("imp_inf_engineer", "JetFuelCost", 0.18)
SetClassProperty("imp_inf_engineer", "JetFuelInitialCost", 0.15)
SetClassProperty("imp_inf_engineer", "JetFuelMinBorder", 0.14)
SetClassProperty("imp_inf_engineer", "ControlSpeed", "jet 2.00 1.30 1.30")

SetClassProperty("imp_inf_engineer", "EngineSound", "rep_inf_Jetpack_engine_parameterized")
SetClassProperty("imp_inf_engineer", "TurnOnSound", "rep_weap_jetpack_turnon")
SetClassProperty("imp_inf_engineer", "TurnOffSound", "rep_weap_jetpack_turnoff")
SetClassProperty("imp_inf_engineer", "TurnOffTime", 0.0)

-------------------

SetClassProperty("imp_inf_officer", "PointsToUnlock", 0)
SetClassProperty("imp_inf_officer", "MaxSpeed", 8.0)
SetClassProperty("imp_inf_officer", "MaxStrafeSpeed", 6.0)
SetClassProperty("imp_inf_officer", "MaxTurnSpeed", 5.5)

SetClassProperty("imp_inf_officer", "JumpHeight", 20.0)
SetClassProperty("imp_inf_officer", "JumpForwardSpeedFactor", 2.0)
SetClassProperty("imp_inf_officer", "JumpStrafeSpeedFactor", 2.0)
SetClassProperty("imp_inf_officer", "MaxHealth", 800)
SetClassProperty("imp_inf_officer", "AddHealth", 10)

SetClassProperty("imp_inf_officer", "JetJump", 5.0)
SetClassProperty("imp_inf_officer", "JetPush", 8.0)
SetClassProperty("imp_inf_officer", "JetAcceleration", 30.0)
SetClassProperty("imp_inf_officer", "JetEffect", "rep_sfx_jetpack")
SetClassProperty("imp_inf_officer", "JetType", "hover")
SetClassProperty("imp_inf_officer", "JetFuelRechargeRate", 0.08)
SetClassProperty("imp_inf_officer", "JetFuelCost", 0.18)
SetClassProperty("imp_inf_officer", "JetFuelInitialCost", 0.15)
SetClassProperty("imp_inf_officer", "JetFuelMinBorder", 0.14)
SetClassProperty("imp_inf_officer", "ControlSpeed", "jet 2.00 1.30 1.30")

SetClassProperty("imp_inf_officer", "EngineSound", "rep_inf_Jetpack_engine_parameterized")
SetClassProperty("imp_inf_officer", "TurnOnSound", "rep_weap_jetpack_turnon")
SetClassProperty("imp_inf_officer", "TurnOffSound", "rep_weap_jetpack_turnoff")
SetClassProperty("imp_inf_officer", "TurnOffTime", 0.0)

-------------------


SetClassProperty("imp_inf_dark_trooper", "PointsToUnlock", 0)
SetClassProperty("imp_inf_dark_trooper", "MaxSpeed", 8.0)
SetClassProperty("imp_inf_dark_trooper", "MaxStrafeSpeed", 6.0)
SetClassProperty("imp_inf_dark_trooper", "MaxTurnSpeed", 5.5)

SetClassProperty("imp_inf_dark_trooper", "JumpHeight", 20.0)
SetClassProperty("imp_inf_dark_trooper", "JumpForwardSpeedFactor", 2.0)
SetClassProperty("imp_inf_dark_trooper", "JumpStrafeSpeedFactor", 2.0)
SetClassProperty("imp_inf_dark_trooper", "MaxHealth", 800)
SetClassProperty("imp_inf_dark_trooper", "AddHealth", 10)

SetClassProperty("imp_inf_dark_trooper", "JetJump", 5.0)
SetClassProperty("imp_inf_dark_trooper", "JetPush", 8.0)
SetClassProperty("imp_inf_dark_trooper", "JetAcceleration", 30.0)
SetClassProperty("imp_inf_dark_trooper", "JetEffect", "rep_sfx_jetpack")
SetClassProperty("imp_inf_dark_trooper", "JetType", "hover")
SetClassProperty("imp_inf_dark_trooper", "JetFuelRechargeRate", 0.08)
SetClassProperty("imp_inf_dark_trooper", "JetFuelCost", 0.18)
SetClassProperty("imp_inf_dark_trooper", "JetFuelInitialCost", 0.15)
SetClassProperty("imp_inf_dark_trooper", "JetFuelMinBorder", 0.14)
SetClassProperty("imp_inf_dark_trooper", "ControlSpeed", "jet 2.00 1.30 1.30")

SetClassProperty("imp_inf_dark_trooper", "EngineSound", "rep_inf_Jetpack_engine_parameterized")
SetClassProperty("imp_inf_dark_trooper", "TurnOnSound", "rep_weap_jetpack_turnon")
SetClassProperty("imp_inf_dark_trooper", "TurnOffSound", "rep_weap_jetpack_turnoff")
SetClassProperty("imp_inf_dark_trooper", "TurnOffTime", 0.0)

Last edited by SHOOT ME DEAD ! on Thu Jun 18, 2009 3:39 pm, edited 8 times in total.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Superjumps code

Post by FragMe! »

Welcome to Gametoast. Please use the HIDE function for long list of text such as what you just posted, also for pictures should you start putting any in.

I applied the hide to your post.
Thank you.
myers73
Lieutenant General
Lieutenant General
Posts: 690
Joined: Fri Apr 03, 2009 11:04 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Atlanta, GA xfire=myers73 IngameName=mYers

Re: Superjumps code

Post by myers73 »

FragMe! wrote:Welcome to Gametoast. Please use the HIDE function for long list of text such as what you just posted, also for pictures should you start putting any in.

I applied the hide to your post.
Thank you.
I agree, but either your hide failed, or my computer is.
User avatar
SHOOT ME DEAD !
Private Recruit
Posts: 22
Joined: Wed Jun 17, 2009 10:53 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Superjumps code

Post by SHOOT ME DEAD ! »

ok ill have a look, i may have been adding colour when u did that... sry.. hate when that happens
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Superjumps code

Post by Fiodis »

You know, a lot more people know how to just make a new side rather than bother with all that LUA code, and load it in for a single mode.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Superjumps code

Post by Maveritchell »

If you have the 1.3 patch, this can be applied dynamically whenever and wherever you want it. Much easier than writing it into your map, and it gives you the option to play normally as well.
User avatar
SHOOT ME DEAD !
Private Recruit
Posts: 22
Joined: Wed Jun 17, 2009 10:53 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Superjumps code

Post by SHOOT ME DEAD ! »

well for starters making a side would take more time, waste alot of disk space, and make for a huge download, where as this mod download would be less than one MB. You must have massive wasteful mods.

Also, the 1.3 patch gives you jets yes.... but this code lets you customize your settings specific to the map. This gives you a large cut and paste to start with, then lets you edit the speeds and heights from there. Also the topic was called "superjumps", not "give everybody jets". The jets are just the softlanding part, this is some code to throw in for superjumps.

Also this code has changes to the units health, and gives units add health as well.

So making a side to do this.... lol... sure you go ahead... and the 1.3 patch ? Well thats just not enough control for my taste, on Bespin my super jumps were massive.. but on Naboo they were toned down alot.

Actually the reason I came back is to mention that this code wont work unless you have the ep3 jet trooper loaded. Even if you do not want to use the ep3, you must load it so the classes are in memory and the calls to SetClassProperty() will work.

if you dont get what i mean you can read the topic : Post Scripting ... the 15 minute mod.


Hey.. is there any way to make a topic that ppl DONT respond to ? lol.
Last edited by SHOOT ME DEAD ! on Wed Jun 17, 2009 5:34 pm, edited 1 time in total.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Superjumps code

Post by Fiodis »

For one thing, the "massive wasteful" mods are worth it.

For another, you can run LUA script in-game via Fake Console, adjusting anything you can adjust through LUA.
User avatar
SHOOT ME DEAD !
Private Recruit
Posts: 22
Joined: Wed Jun 17, 2009 10:53 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Superjumps code

Post by SHOOT ME DEAD ! »

lol ya well i dont think typing in 50 lines of lua is fun, nor does it let you distribute mods to your friends via email. enjoy your massive mods.

In the EYNTK 2.0 i noticed two links both about reducing the file size of your SIDE. Well the truth is the smaller SIDE is no side at all and you can do quite alot just using class inheritance and post scripting. Even if you do have to make a side, you can still ONLY put in there what needs to be in there, and post script the rest.

Check my thread on the 15 minute mod for some info on class inheritence at runtime.

Claims that making a side is more effecient than a "bothering with all that lua code" are absurb. A few lines of code will always be easier. lol and it actually isnt alot of code. your computer has a cut and paste feature. just right click.

On the note about adding in eras and stuff, I find its not really a good idea to keep adding things to the games menu as it makes for clutter. Having a long list of worlds is ok, and actually quicker to setup than clicking loads of options. You do not need to ship the world.lvl with your mod if it loads a shipped map, so theres no harm in just adding worlds to the menu that load shipped maps. Plus when I want to make 5 different death star conquest maps, era is not an issue.
Last edited by SHOOT ME DEAD ! on Wed Jun 17, 2009 5:56 pm, edited 1 time in total.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Superjumps code

Post by Fiodis »

If you have a halfway decent computer with a bit of free space, you're fine with making "massively wasteful" mods.

Also, I may mention, 500 is the mission limit. If you make these custom LUAs and add them in in addition to stock ones, then that's taking up just the same amount of missions as a "massively wasteful" mod. A mission is a mission, no matter how "wasteful" it is. With that in mind, I'd rather spend my allowance on new maps, units, etc. rather than hacked remakes of originals. But that's only my opinion. From your claim that you've released over 80 mods of the hackjob sort, I imagine there is some demand for them, somewhere. All that is sure is that they're never on SWBFFiles, not as far as I can tell.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Superjumps code

Post by Maveritchell »

SHOOT ME DEAD ! wrote:Also, the 1.3 patch gives you jets yes.... but this code lets you customize your settings specific to the map. This gives you a large cut and paste to start with, then lets you edit the speeds and heights from there. Also the topic was called "superjumps", not "give everybody jets". The jets are just the softlanding part, this is some code to throw in for superjumps.
The 1.3 patch has "super jumps" as well; it even calls them that. It also has a mini-command-line you can use to execute lua code mid-map, which is a lot of control.

And of course all this can be turned on and off at your leisure.
User avatar
SHOOT ME DEAD !
Private Recruit
Posts: 22
Joined: Wed Jun 17, 2009 10:53 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Superjumps code

Post by SHOOT ME DEAD ! »

I know alot of people deleteing mods because they cannot have both mods installed at the same time.

I dont know anybody deleting mods because they have reached their 500 limit.
Last edited by SHOOT ME DEAD ! on Thu Jun 18, 2009 1:42 pm, edited 1 time in total.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Superjumps code

Post by Fiodis »

Well, I'm sorry if you believe it's my intention to be rude. It isn't. Neither is Mav's, I'm sure, when either of us point out alternatives to the way you mod.
User avatar
SHOOT ME DEAD !
Private Recruit
Posts: 22
Joined: Wed Jun 17, 2009 10:53 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Superjumps code

Post by SHOOT ME DEAD ! »

oh and thanks mav, thats very interesting and would be almost exactly what i need.

cept my purpose is to distrubute the mods, not exec lua or need someone else too.

but hey, sounds kule.

my definition of control includes not asking the user to do anything, cept maybe set the number of bots since -SMD- mods are for multiplayer, and its essential we can turn off bots. So if ya cant just load it and run it, its all too much for the player. You want the mod to play the same with or without you hosting it.
Last edited by SHOOT ME DEAD ! on Wed Jun 17, 2009 6:20 pm, edited 1 time in total.
User avatar
Nihillo
Master Bounty Hunter
Master Bounty Hunter
Posts: 1548
Joined: Sun Jan 04, 2009 9:53 pm
Location: Brazil

Re: Superjumps code

Post by Nihillo »

SHOOT ME DEAD ! wrote:Visit http://www.smdchat.webs.com if you want tear a piece off me so badly..... its my clans chat page and is very kule. There you can disgrace me in front of all my friends on a chat that will eventually move off the page instead of wasting the time and space of the good people at gametoast.
There is no need to, that thing is already full of pointless profanity.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Superjumps code

Post by [RDH]Zerted »

  • Any more posts not containing additions to the technical arguments related to the topic of this thread will cause the thread to be locked.
  • Any more posts with non-useful emotional content will cause the thread to be locked.


Hard drive space is always getting cheaper, but its good to be nice to everyone by only making them download as little as possible.

Yes, it would be a pain to type a lot of code into the v1.3's code console. I would recommend using custom user scripts. You can make them run code each time a level is loaded or use them to add in new FakeConsole commands. They are a great way to make temporary script updates to existing maps without re-munging the map or using the code console.

The FakeConsole does have commands similar to the code posted above, but they are not exactly the same. Also, by putting the code in the map's script, the user won't have to go use those commands and the v1.3 is no longer required for those features.

I didn't think of adding in the jet effects or the sounds. Thats something missing from v1.3.
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Superjumps code

Post by Sky_216 »

This is kinda related and kinda not....basically about the whole "lua vs side" debate


@SMD: Did you know you can make a side that uses only odfs and reqs - which makes the side tiny (btw don't think anyone ever has in a released map)? As long as you load the units from the parent sides (ie load the default ones in your lua before the other ones) with the weapons/textures/models you want first, you can make a side that uses up almost no space....and not have the problems of massive amounts of lua code, not being able to edit weapons properly and breaking online compatability.
Post Reply