[H2X]i need some one to inject a script for me.
Posted: Sat Sep 08, 2007 11:40 pm
ok i have studied countless hours on how to wright scripts and how to arange them. so i figured i would give the back pack mod a shot. so could someone PLEASE HELP ME BY INJECTING THIS SCRIPT FOR ME! could you please tell what happens. even if it doesn't work i would like to know so that i can try to fix my prob. i would also like multiple people try to inject it so that i will have more reassuring that some one just made a mistake. if it works EVERY ONE THAT GIVES AN ATTEMPT OR GETS IT TO WORK WILL BE CREDITED. and PLEASE post some pics if it works. lets try to get this script working so that every one can use it. thx 

(global object_definition w_covenant_carbine "weapons\rifle\covenant_carbine\covenant_carbine")
(global object_definition w_battle_rifle "weapons\rifle\battle_rifle\battle_rifle")
(global object_definition w_needler "weapons\pistol\needler\needler")
(global object_definition w_magnum "weapons\pistol\magnum\magnum")
(global object_definition w_energy_blade "weapons\melee\energy_blade\energy_blade")
(global object_definition w_brute_shot "weapons\support_low\brute_shot\brute_shot")
(global object_definition w_plasma_pistol "weapons\pistol\plasma_pistol\plasma_pistol")
(global object_definition w_plasma_rifle "weapons\rifle\plasma_rifle\plasma_rifle")
(global object_definition w_brute_plasma_rifle "weapons\rifle\brute_plasma_rifle\brute_plasma_rifle")
(global object_definition w_rocket_launcher "weapons\support_high\rocket_launcher\rocket_launcher")
(global object_definition w_sentinel_aggressor_beam "weapons\beam\sentinel_aggressor_beam")
(global object_definition w_shotgun "weapons\rifle\shotgun\shotgun")
(global object_definition w_sniper_rifle "weapons\rifle\sniper_rifle\sniper_rifle")
(global object_definition w_beam_rifle "weapons\rifle\beam_rifle\beam_rifle")
(global short plyrnum 0)
(script continuous increase_plyrnum
(begin
(set plyrnum (+ plyrnum 1))
)
)
(script continuous reset_plyrnum
(if
(= (> plyrnum 15) true)
(begin
(set plyrnum 0)
)
)
)
(script continuous backpack_covenantcarbine
(if
(and
(unit_has_weapon (unit (list_get (players) plyrnum)) w_covenant_carbine)
(not (unit_has_weapon_readied (unit (list_get (players) plyrnum)) w_covenant_carbine))
true)
(begin
(object_set_permutation (unit (list_get (players) plyrnum)) "backpack" w_covenant_carbine)
)
)
)
(script continuous backpack_battlerifle
(if
(and
(unit_has_weapon (unit (list_get (players) plyrnum)) w_battle_rifle)
(not (unit_has_weapon_readied (unit (list_get (players) plyrnum)) w_battle_rifle))
true)
(begin
(object_set_permutation (unit (list_get (players) plyrnum)) "backpack" w_battle_rifle)
)
)
)
(script continuous backpack_needler
(if
(or
(and
(unit_has_weapon (unit (list_get (players) plyrnum)) w_needler)
(not (unit_has_weapon_readied (unit (list_get (players) plyrnum)) w_needler))
true)
(and
(unit_has_weapon (unit (list_get (players) plyrnum)) w_mp_needler)
(not (unit_has_weapon_readied (unit (list_get (players) plyrnum)) w_needler))
true)
)
(begin
(object_set_permutation (unit (list_get (players) plyrnum)) "backpack" needler)
)
)
)
(script continuous backpack_magnum
(if
(and
(unit_has_weapon (unit (list_get (players) plyrnum)) w_magnum)
(not (unit_has_weapon_readied (unit (list_get (players) plyrnum)) w_magnum))
true)
(begin
(object_set_permutation (unit (list_get (players) plyrnum)) "backpack" magnum)
)
)
)
(script continuous backpack_energyblade
(if
(and
(unit_has_weapon (unit (list_get (players) plyrnum)) w_energy_blade)
(not (unit_has_weapon_readied (unit (list_get (players) plyrnum)) w_energy_blade))
true)
(begin
(object_set_permutation (unit (list_get (players) plyrnum)) "backpack" energy_blade)
)
)
)
(script continuous backpack_bruteshot
(if
(and
(unit_has_weapon (unit (list_get (players) plyrnum)) w_brute_shot)
(not (unit_has_weapon_readied (unit (list_get (players) plyrnum)) w_brute_shot))
true)
(begin
(object_set_permutation (unit (list_get (players) plyrnum)) "backpack" brute_shot)
)
)
)
(script continuous backpack_plasmapistol
(if
(and
(unit_has_weapon (unit (list_get (players) plyrnum)) w_plasma_pistol)
(not (unit_has_weapon_readied (unit (list_get (players) plyrnum)) w_plasma_pistol))
true)
(begin
(object_set_permutation (unit (list_get (players) plyrnum)) "backpack" plasma_pistol)
)
)
)
(script continuous backpack_plasmarifle
(if
(and
(unit_has_weapon (unit (list_get (players) plyrnum)) w_plasma_rifle)
(not (unit_has_weapon_readied (unit (list_get (players) plyrnum)) w_plasma_rifle))
true)
(begin
(object_set_permutation (unit (list_get (players) plyrnum)) "backpack" plasma_rifle)
)
)
)
(script continuous backpack_bruteplasmarifle
(if
(and
(unit_has_weapon (unit (list_get (players) plyrnum)) w_brute_plasma_rifle)
(not (unit_has_weapon_readied (unit (list_get (players) plyrnum)) w_brute_plasma_rifle))
true)
(begin
(object_set_permutation (unit (list_get (players) plyrnum)) "backpack" brute_plasma_rifle)
)
)
)
(script continuous backpack_rocketlauncher
(if
(and
(unit_has_weapon (unit (list_get (players) plyrnum)) w_rocket_launcher)
(not (unit_has_weapon_readied (unit (list_get (players) plyrnum)) w_rocket_launcher))
true)
(begin
(object_set_permutation (unit (list_get (players) plyrnum)) "backpack" rocket_launcher)
)
)
)
(script continuous backpack_sentinelaggressorbeam
(if
(and
(unit_has_weapon (unit (list_get (players) plyrnum)) w_spartan_laser)
(not (unit_has_weapon_readied (unit (list_get (players) plyrnum)) w_sentinel_aggressor_beam))
true)
(begin
(object_set_permutation (unit (list_get (players) plyrnum)) "backpack" sentinel_aggressor_beam)
)
)
)
(script continuous backpack_shotgun
(if
(and
(unit_has_weapon (unit (list_get (players) plyrnum)) w_shotgun)
(not (unit_has_weapon_readied (unit (list_get (players) plyrnum)) w_shotgun))
true)
(begin
(object_set_permutation (unit (list_get (players) plyrnum)) "backpack" shotgun)
)
)
)
(script continuous backpack_sniperrifle
(if
(and
(unit_has_weapon (unit (list_get (players) plyrnum)) w_sniper_rifle)
(not (unit_has_weapon_readied (unit (list_get (players) plyrnum)) w_sniper_rifle))
true)
(begin
(object_set_permutation (unit (list_get (players) plyrnum)) "backpack" sniper_rifle)
)
)
)
(script continuous backpack_beamrifle
(if
(and
(unit_has_weapon (unit (list_get (players) plyrnum)) w_beam_rifle)
(not (unit_has_weapon_readied (unit (list_get (players) plyrnum)) w_beam_rifle))
true)
(begin
(object_set_permutation (unit (list_get (players) plyrnum)) "backpack" beam_rifle)
)
)
)