Downloads containing SEbow.j2as

Downloads
Name Author Game Mode Rating
TSF with JJ2+ Only: Anniversary Bash 24 CTF PurpleJazz Capture the flag N/A Download file
TSF with JJ2+ Only: Anniversary Bash 21 Levels Jazz2Online Multiple N/A Download file
TSF with JJ2+ Only: Battle of Waterloo 1835Featured Download Seren Capture the flag 8.5 Download file

File preview

  1. #pragma require "SEbow.j2a"
  2. #pragma require "SEroller.asc"
  3. #include "SEroller.asc"
  4. se::DefaultWeaponHook weaponHook;
  5. const int maxShieldTime = 15 * 70;
  6. bool onDrawAmmo(jjPLAYER@ player, jjCANVAS@ canvas) {
  7.         return weaponHook.drawAmmo(player, canvas);
  8. }
  9. void onMain() {
  10.         weaponHook.processMain();
  11. }
  12. void onPlayer(jjPLAYER@ player) {
  13.         if (player.shieldTime > maxShieldTime)
  14.                 player.shieldTime = maxShieldTime;
  15.         weaponHook.processPlayer(player);
  16. }
  17. void onPlayerInput(jjPLAYER@ player) {
  18.         weaponHook.processPlayerInput(player);
  19. }
  20. void onReceive(jjSTREAM &in packet, int clientID) {
  21.         weaponHook.processPacket(packet, clientID);
  22. }
  23. void onLevelLoad() {
  24.         jjAnimSets[ANIM::BRIDGE].load(0, "SEbow.j2a");
  25.         se::roller.loadAnims(jjAnimSets[ANIM::CUSTOM[0]]);
  26.         se::roller.loadSamples(array<SOUND::Sample> = {SOUND::INTRO_BRAKE});
  27.         se::roller.setAsWeapon(3, weaponHook);
  28. }
  29.