this is line 85.Executing Modules/ScriptGL/vWeaponHud.acs.cs.
Modules/ScriptGL/vWeaponHud.acs.cs Line: 85 - syntax error, unexpected ')', expecting ',' or ']'
Code: Select all
if(GetItemdesc(GetMountedItem(0)) == "Grappling Hook") // "target
Code: Select all
function vhud::WeaponHud::onrender()
{
if(!Control::getVisible("ScriptGL::vWeaponHud"))
return;
if($Scriptgl::CurrentGui != "playGui")
return;
%pos = Control::getPosition("ScriptGL::vWeaponHud");
%x = getWord(%pos, 0);
%y = getWord(%pos, 1);
glSetFont( "Jet Set", 16, 0, 9 );
if($ServerMod == "Annihilation")
{
if(GetItemdesc(GetMountedItem(0)) == "Targeting Laser") //dont think i ever defined this one. neat.
WeaponHud::Draw(%x + 0,%y, $WeaponHud::Texture["target"], "~");
//if(GetItemdesc(GetMountedItem(0)) == "Disc Launcher")
// WeaponHud::Draw(%x + 0,%y, $WeaponHud::Texture["disc"], GetItemCount("Disc"));
//
//if(GetItemdesc(GetMountedItem(0)) == "Grenade Launcher")
// WeaponHud::Draw(%x + 0,%y, $WeaponHud::Texture["grenade"], GetItemCount("Grenade Ammo"));
//
//if(GetItemdesc(GetMountedItem(0)) == "Chaingun")
// WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["chaingun"], GetItemCount("Bullet"));
//
//if(GetItemdesc(GetMountedItem(0)) == "Laser Rifle")
// WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["sniper"], "~");
//
//if(GetItemdesc(GetMountedItem(0)) == "Mortar")
// WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["mortar"], GetItemCount("Mortar Ammo"));
//
//if(GetItemdesc(GetMountedItem(0)) == "Blaster")
// WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["blaster"], "~");
//
//if(GetItemdesc(GetMountedItem(0)) == "ELF Gun")
// WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["elf"], "~");
//
//if(GetItemdesc(GetMountedItem(0)) == "Plasma Gun")
// WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["plasma"], GetItemCount("Plasma Bolt"));
//Weapons
if(GetItemdesc(GetMountedItem(0)) == "Grenade Launcher X") // , "grenade", "Grenade Ammo X
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["grenade"], GetItemCount("Grenade Ammo X"));
if(GetItemdesc(GetMountedItem(0)) == "Plasma Gun X") // "plasma") // "PlasmaBolt X
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["plasma"], GetItemCount("PlasmaBolt X"));
if(GetItemdesc(GetMountedItem(0)) == "Disc Launcher X") // "disc") // "Disc X
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["disc"], GetItemCount("Disc X"));//shiat wish i freaking changed the weapon name now lol
//New Arena Guns
if(GetItemdesc(GetMountedItem(0)) == "Plasma Gun Elite") // "plasma") // "PlasmaBolt Elite
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["plasma"], GetItemCount("PlasmaBolt Elite"));
if(GetItemdesc(GetMountedItem(0)) == "Disc Launcher Elite") // "disc") // "Disc Elite
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["disc"], GetItemCount("Disc Elite"));
if(GetItemdesc(GetMountedItem(0)) == "Plasma Gun Base") // "plasma") // "PlasmaBolt Base
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["plasma"], GetItemCount("PlasmaBolt Base"));
if(GetItemdesc(GetMountedItem(0)) == "Disc Launcher Base") // "disc") // "Disc Base
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["disc"], GetItemCount("Disc Base"));
//end
if(GetItemdesc(GetMountedItem(0)) == "Plasma Gun") // "plasma") // "PlasmaBolt
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["plasma"], GetItemCount("PlasmaBolt"));
if(GetItemdesc(GetMountedItem(0)) == "Grappling Hook") // "target
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["target"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Buckler") // "shieldimgx
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["shieldimg"], "~");
if(GetItemdesc(GetMountedItem(0)) == "X72 Gravity Gun") // "target
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["target"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Builder Gun") // "mortar
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["mortar"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Blaster") // "blaster
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["blaster"], "~");
if(GetItemdesc(GetMountedItem(0)) == "ChainGun") // "chaingun") // "Bullet
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["chaingun"], GetItemCount("Bullet"));
if(GetItemdesc(GetMountedItem(0)) == "Disc Launcher") // "disc") // "Disc
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["disc"], GetItemCount("Disc"));
if(GetItemdesc(GetMountedItem(0)) == "Elf Gun") // "elf
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["elf"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Grenade Launcher") // "grenade") // "Grenade Ammo
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["grenade"], GetItemCount("Grenade Ammo"));
if(GetItemdesc(GetMountedItem(0)) == "Laser Rifle") // "sniper
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["sniper"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Minigun") // "minigun
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["chaingun"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Thumper") // "thumper") // "Thumper Ammo
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["thumper"], GetItemCount("Thumper Ammo"));
if(GetItemdesc(GetMountedItem(0)) == "Mortar") // "mortar") // "Mortar Ammo
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["mortar"], GetItemCount("Mortar Ammo"));
if(GetItemdesc(GetMountedItem(0)) == "Angel Fire") // "energyshot
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["energyshot"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Bio Feedback Beam") // "target
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["target/."));
if(GetItemdesc(GetMountedItem(0)) == "Baby Nuke Launcher") // "mortar") // "Nuclear Device
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["mortar"], GetItemCount("Nuclear Device"));
if(GetItemdesc(GetMountedItem(0)) == "Cutting Laser") // "blaster
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["target"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Builder Repair-Gun") // "repairpack
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["repairpack"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Flamer") // "elf") // "FlamerAmmo
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["elf"], GetItemCount("FlamerAmmo"));
if(GetItemdesc(GetMountedItem(0)) == "Flame Thrower") // "mortarammo") // "Flame Cartridges
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["mortarammo"], GetItemCount("Flame Cartridges"));
if(GetItemdesc(GetMountedItem(0)) == "Mini Bomber") // "grenade") // "Mini Ammo
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["grenade"], GetItemCount("Mini Ammo"));
if(GetItemdesc(GetMountedItem(0)) == "Lucifers Hammer") // "mortarammo") // "Hammer Ammo
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["mortarammo"], GetItemCount("Hammer Ammo"));
if(GetItemdesc(GetMountedItem(0)) == "Hyper Spinfusor") // "disc") // "Hyper Disc
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["disc"], GetItemCount("Hyper Disc"));
if(GetItemdesc(GetMountedItem(0)) == "Heavens Gate") // "target
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["target"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Heaven's Fury") // "elf
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["elf"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Jailers Gun") // "elf
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["elf"], "~");
//Clay Pigeon Launcher
if(GetItemdesc(GetMountedItem(0)) == "Clay Pigeon Launcher") // "grenade") // "ClayPigeon Can
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["grenade"], GetItemCount("ClayPigeon Can"));
//new/old gun doh -DaJ4ck3L
if(GetItemdesc(GetMountedItem(0)) == "OS Launcher") // "grenade") // "OS Rockets
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["grenade"], GetItemCount("OS Rockets"));
if(GetItemdesc(GetMountedItem(0)) == "OS Laucher") // "grenade") // "OS Rockets
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["grenade"], GetItemCount("OS Rockets"));
//lol wonder who miss spelled this -DaJ4ck3L
if(GetItemdesc(GetMountedItem(0)) == "Particle Beam") // "sexypbeam
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["sexypbeam"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Phase Disrupter") // "blaster") // "Disrupter Ammo
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["blaster"], GetItemCount("Disrupter Ammo"));
if(GetItemdesc(GetMountedItem(0)) == "Pitchfork") // "mortar
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["mortar"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Railgun") // "sniper") // "Railgun Bolt
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["sniper"], GetItemCount("Railgun Bolt"));
if(GetItemdesc(GetMountedItem(0)) == "Rocket Launcher") // "mortar") // "Rockets
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["mortar"], GetItemCount("Rockets"));
if(GetItemdesc(GetMountedItem(0)) == "Rocket Pod") // "mortar") // "Pod Rockets
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["mortar"], GetItemCount("Pod Rockets"));
if(GetItemdesc(GetMountedItem(0)) == "Rubbery Mortar") // "mortar") // "R Mortar Ammo
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["mortar"], GetItemCount("R Mortar Ammo"));
if(GetItemdesc(GetMountedItem(0)) == "Shockwave Cannon") // "elf
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["elf"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Shotgun") // "elf") // "Shotgun Shells
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["elf"], GetItemCount("Shotgun Shells"));
if(GetItemdesc(GetMountedItem(0)) == "Sniper Rifle") // "sniper") // "Sniper Ammo
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["sniper"], GetItemCount("Sniper Ammo"));
if(GetItemdesc(GetMountedItem(0)) == "Soul Grabber") // "mortarammo
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["mortarammo"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Spell: Death Ray") // "plasmaturret
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["plasmaturret"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Spell: Disarm") // "mortartrail
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["mortartrail"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Spell: Flame Strike") // "plasmaammo
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["plasmaammo"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Spell: Flame Thrower") // "plasmaammo
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["plasmaammo"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Spell: Shocking Grasp") // "plant
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["plant"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Spell: Stasis") // "energyshot
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["energyshot"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Stinger Missle") // "grenade") // "Stinger Ammo
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["grenade"], GetItemCount("Stinger Ammo"));
if(GetItemdesc(GetMountedItem(0)) == "Tank Blast Cannon") // "mortar") // "Blast Cannon Shots
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["mortar"], GetItemCount("Blast Cannon Shots"));
if(GetItemdesc(GetMountedItem(0)) == "Tank Rocketgun") // "mortar") // "TRocketLauncher Ammo
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["mortar"], GetItemCount("TRocketLauncher Ammo"));
if(GetItemdesc(GetMountedItem(0)) == "Tank RPG") // "mortar") // "RPG Ammo
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["mortar"], GetItemCount("RPG Ammo"));
if(GetItemdesc(GetMountedItem(0)) == "Tank Shredder") // "chaingun") // "Tank Shredder Ammo
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["chaingun"], GetItemCount("Tank Shredder Ammo"));
if(GetItemdesc(GetMountedItem(0)) == "Vulcan") // "chaingun") // "Vulcan Bullet
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["chaingun"], GetItemCount("Vulcan Bullet"));
if(GetItemdesc(GetMountedItem(0)) == "Slapper") // "sniper
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["sniper"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Energy Blade") // "energyshot
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["energyshot"], "~");
}
if($ServerMod == "base")
{
if(GetItemdesc(GetMountedItem(0)) == "Targeting Laser")
WeaponHud::Draw(%x + 0,%y, $WeaponHud::Texture["target"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Disc Launcher")
WeaponHud::Draw(%x + 0,%y, $WeaponHud::Texture["disc"], GetItemCount("Disc"));
if(GetItemdesc(GetMountedItem(0)) == "Grenade Launcher")
WeaponHud::Draw(%x + 0,%y, $WeaponHud::Texture["grenade"], GetItemCount("Grenade Ammo"));
if(GetItemdesc(GetMountedItem(0)) == "Chaingun")
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["chaingun"], GetItemCount("Bullet"));
if(GetItemdesc(GetMountedItem(0)) == "Laser Rifle")
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["sniper"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Mortar")
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["mortar"], GetItemCount("Mortar Ammo"));
if(GetItemdesc(GetMountedItem(0)) == "Blaster")
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["blaster"], "~");
if(GetItemdesc(GetMountedItem(0)) == "ELF Gun")
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["elf"], "~");
if(GetItemdesc(GetMountedItem(0)) == "Plasma Gun")
WeaponHud::Draw(%x + 0,%y + 0, $WeaponHud::Texture["plasma"], GetItemCount("Plasma Bolt"));
}
}