318 --------------------------------- |
318 --------------------------------- |
319 |
319 |
320 local atkArray = |
320 local atkArray = |
321 { |
321 { |
322 |
322 |
323 {amBazooka, "amBazooka", 2}, |
323 {amBazooka, "amBazooka"}, |
324 {amBee, "amBee", 3}, |
324 {amBee, "amBee"}, |
325 {amMortar, "amMortar", 21}, |
325 {amMortar, "amMortar"}, |
326 {amDrill, "amDrill", 28}, |
326 {amDrill, "amDrill"}, |
327 {amSnowball, "amSnowball", 50}, |
327 {amSnowball, "amSnowball"}, |
328 |
328 |
329 {amGrenade, "amGrenade", 0}, |
329 {amGrenade, "amGrenade"}, |
330 {amClusterBomb, "amClusterBomb", 1}, |
330 {amClusterBomb, "amClusterBomb"}, |
331 {amWatermelon, "amWatermelon", 25}, |
331 {amWatermelon, "amWatermelon"}, |
332 {amHellishBomb, "amHellishBomb", 26}, |
332 {amHellishBomb, "amHellishBomb"}, |
333 {amMolotov, "amMolotov", 39}, |
333 {amMolotov, "amMolotov"}, |
334 {amGasBomb, "amGasBomb", 43}, |
334 {amGasBomb, "amGasBomb"}, |
335 |
335 |
336 {amShotgun, "amShotgun", 4}, |
336 {amShotgun, "amShotgun"}, |
337 {amDEagle, "amDEagle", 9}, |
337 {amDEagle, "amDEagle"}, |
338 {amSniperRifle, "amSniperRifle", 37}, |
338 {amSniperRifle, "amSniperRifle"}, |
339 {amSineGun, "amSineGun", 44}, |
339 {amSineGun, "amSineGun"}, |
340 {amFlamethrower,"amFlamethrower", 45}, |
340 {amFlamethrower,"amFlamethrower"}, |
341 {amIceGun, "amIceGun", 53}, |
341 {amIceGun, "amIceGun"}, |
342 |
342 |
343 {amFirePunch, "amFirePunch", 11}, |
343 {amFirePunch, "amFirePunch"}, |
344 {amWhip, "amWhip", 12}, |
344 {amWhip, "amWhip"}, |
345 {amBaseballBat, "amBaseballBat", 13}, |
345 {amBaseballBat, "amBaseballBat"}, |
346 {amKamikaze, "amKamikaze", 22}, |
346 {amKamikaze, "amKamikaze"}, |
347 {amSeduction, "amSeduction", 24}, |
347 {amSeduction, "amSeduction"}, |
348 {amHammer, "amHammer", 47}, |
348 {amHammer, "amHammer"}, |
349 |
349 |
350 {amMine, "amMine", 8}, |
350 {amMine, "amMine"}, |
351 {amDynamite, "amDynamite", 10}, |
351 {amDynamite, "amDynamite"}, |
352 {amCake, "amCake", 23}, |
352 {amCake, "amCake"}, |
353 {amBallgun, "amBallgun", 29}, |
353 {amBallgun, "amBallgun"}, |
354 {amRCPlane, "amRCPlane", 30}, |
354 {amRCPlane, "amRCPlane"}, |
355 {amSMine, "amSMine", 46}, |
355 {amSMine, "amSMine"}, |
356 |
356 |
357 {amAirAttack, "amAirAttack", 15}, |
357 {amAirAttack, "amAirAttack", 63}, -- overwritten icon in Ammos.png |
358 {amMineStrike, "amMineStrike", 16}, |
358 {amMineStrike, "amMineStrike"}, |
359 {amNapalm, "amNapalm", 27}, |
359 {amNapalm, "amNapalm"}, |
360 {amPiano, "amPiano", 42}, |
360 {amPiano, "amPiano"}, |
361 {amDrillStrike, "amDrillStrike", 49}, |
361 {amDrillStrike, "amDrillStrike"}, |
362 {amAirMine, "amAirMine", 56}, |
362 {amAirMine, "amAirMine"}, |
363 |
363 |
364 {amKnife, "amKnife", 54}, |
364 {amKnife, "amKnife"}, |
365 |
365 |
366 {amBirdy, "amBirdy", 40}, |
366 {amBirdy, "amBirdy"}, |
367 {amDuck, "amDuck", 57}, |
367 {amDuck, "amDuck"}, |
368 |
368 |
369 } |
369 } |
370 |
370 |
371 local utilArray = |
371 local utilArray = |
372 { |
372 { |
373 |
373 |
374 {amPickHammer, "amPickHammer", 5}, |
374 {amPickHammer, "amPickHammer"}, |
375 {amBlowTorch, "amBlowTorch", 17}, |
375 {amBlowTorch, "amBlowTorch"}, |
376 {amGirder, "amGirder", 18}, |
376 {amGirder, "amGirder"}, |
377 {amLandGun, "amLandGun", 52}, |
377 {amLandGun, "amLandGun"}, |
378 {amRubber, "amRubber", 55}, |
378 {amRubber, "amRubber"}, |
379 |
379 |
380 {amRope, "amRope", 7}, |
380 {amRope, "amRope"}, |
381 {amParachute, "amParachute", 14}, |
381 {amParachute, "amParachute"}, |
382 {amTeleport, "amTeleport", 19}, |
382 {amTeleport, "amTeleport"}, |
383 {amJetpack, "amJetpack", 38}, |
383 {amJetpack, "amJetpack"}, |
384 {amPortalGun, "amPortalGun", 41}, |
384 {amPortalGun, "amPortalGun"}, |
385 |
385 |
386 {amInvulnerable,"amInvulnerable", 33}, |
386 {amInvulnerable,"amInvulnerable"}, |
387 {amLaserSight, "amLaserSight", 35}, |
387 {amLaserSight, "amLaserSight"}, |
388 {amVampiric, "amVampiric", 36}, |
388 {amVampiric, "amVampiric"}, |
389 {amResurrector, "amResurrector", 48}, |
389 {amResurrector, "amResurrector"}, |
390 {amTardis, "amTardis", 51}, |
390 {amTardis, "amTardis"}, |
391 |
391 |
392 {amSwitch, "amSwitch", 20}, |
392 {amSwitch, "amSwitch"}, |
393 {amLowGravity, "amLowGravity", 31}, |
393 {amLowGravity, "amLowGravity"}, |
394 {amExtraDamage, "amExtraDamage", 32}, |
394 {amExtraDamage, "amExtraDamage"}, |
395 {amExtraTime, "amExtraTime", 34}, |
395 {amExtraTime, "amExtraTime"}, |
396 |
396 |
397 } |
397 } |
398 |
398 |
399 --skiphog is 6 |
399 --skiphog is 6 |
400 |
400 |
2880 else |
2879 else |
2881 tArr = utilArray |
2880 tArr = utilArray |
2882 end |
2881 end |
2883 |
2882 |
2884 tSprCol = 0xFFFFFFFF |
2883 tSprCol = 0xFFFFFFFF |
2885 tempFrame = tArr[pIndex][3] |
2884 -- Get ammo icon |
2886 |
2885 if tArr[pIndex][3] then |
|
2886 -- Overwritten ammo icon |
|
2887 tempFrame = tArr[pIndex][3] |
|
2888 else |
|
2889 -- Use default ammo icon |
|
2890 tempFrame = tArr[pIndex][1] - 1 |
|
2891 end |
2887 end |
2892 end |
2888 |
2893 |
2889 else |
2894 else |
2890 if CG ~= nil then |
2895 if CG ~= nil then |
2891 SetVisualGearValues(CG, 0, 0, 0, 0, 0, 0, 1000, sprArrow, 1000, 0xFFFFFF00) |
2896 SetVisualGearValues(CG, 0, 0, 0, 0, 0, 0, 1000, sprArrow, 1000, 0xFFFFFF00) |
2892 end |
2897 end |
2893 end |
2898 end |
2894 |
2899 |
2895 SetVisualGearValues(crateSprite, CursorX+xDisplacement, CursorY+yDisplacement, 0, 0, dAngle, tempFrame, 1000, sprAMAmmos, 1000, tSprCol) |
2900 SetVisualGearValues(crateSprite, CursorX+xDisplacement, CursorY+yDisplacement, 0, 0, dAngle, tempFrame, 1000, sprAMAmmos, 1000, tSprCol) |
2896 SetVisualGearValues(tSpr[1], CursorX+xDisplacement-2, CursorY+yDisplacement-2, 0, 0, dAngle, 10, 1000, sprTarget, 1000, tSprCol) |
2901 SetVisualGearValues(tSpr[1], CursorX+xDisplacement-2, CursorY+yDisplacement-2, 0, 0, dAngle, 1, 1000, sprTarget, 1000, tSprCol) |
2897 SetVisualGearValues(tSpr[2], CursorX+xDisplacement-2, CursorY+yDisplacement+2, 0, 0, dAngle, 10, 1000, sprTarget, 1000, tSprCol) |
2902 SetVisualGearValues(tSpr[2], CursorX+xDisplacement-2, CursorY+yDisplacement+2, 0, 0, dAngle, 1, 1000, sprTarget, 1000, tSprCol) |
2898 SetVisualGearValues(tSpr[3], CursorX+xDisplacement+2, CursorY+yDisplacement-2, 0, 0, dAngle, 10, 1000, sprTarget, 1000, tSprCol) |
2903 SetVisualGearValues(tSpr[3], CursorX+xDisplacement+2, CursorY+yDisplacement-2, 0, 0, dAngle, 1, 1000, sprTarget, 1000, tSprCol) |
2899 SetVisualGearValues(tSpr[4], CursorX+xDisplacement+2, CursorY+yDisplacement+2, 0, 0, dAngle, 10, 1000, sprTarget, 1000, tSprCol) |
2904 SetVisualGearValues(tSpr[4], CursorX+xDisplacement+2, CursorY+yDisplacement+2, 0, 0, dAngle, 1, 1000, sprTarget, 1000, tSprCol) |
2900 |
2905 |
2901 |
2906 |
2902 if genTimer >= 100 then |
2907 if genTimer >= 100 then |
2903 |
2908 |
2904 genTimer = 0 |
2909 genTimer = 0 |