I have created a script which enables a player to choose from one of four class modes, each with its own special abilities! DOWNLOAD THE SCRIPT Video review by DeathEnhanced Check back here for updates! Type /mode MODENUMBER to chose your class mode. Soldier: Mode 0

1. Can switch guns at will without dying (use period like normal)

2. Receives 30% less damage from enemy fire and grenades than normal (headshots are still instant-kill though) Assassin: Mode 1

Tip: Use the 2 and 5 number keys to quickly switch between the grenade and the pickaxe.

1. Switch to the grenade to toggle the assassin's invisibility cloak on and off.

2. Swinging the spade will disable the invisibility cloak. (default)

3. Swinging the pickaxe will disable the invisibility cloak. (default)

4. The assassin's cloak can charge up to a maximum time of 15 seconds (default)

5. The assassin's cloak recharges when the assassin's cloak is disabled.

6. Assassins cannot use bullets or grenades to kill the enemy. The only way that they can kill the enemy is by using the pickaxe.

7. Enemy grenades and enemy melee will deactivate the invisibility cloak or possibly kill an invisible assassin. Unfortunately bullets cannot be used to disable the assassin's invisibility cloak or kill them while invisible due to technical reasons.

8. An assassin's invisibility cloak will not function if the player is too close to the enemy intel (default 64 blocks away) or if the player is carrying the enemy intel. Sniper: Mode 2

1. Fire three times on a block to teleport on top of it.

2. The sniper can teleport a maximum of 130 blocks (default, approximate distance that a block can be seen in the fog)

3. When you teleport, the number of blocks you have teleported is subtracted from your teleporter's energy.

4. The teleporter recharges at a rate of 3 blocks per second. (default)

5. You can only teleport on top of blocks that have the three blocks above them being empty space. This is to prevent graphical glitchouts.

6. The shotgun cannot be used to teleport (because many accidental teleportations would occur if it could be used)

7. The SMG cannot be used to teleport

8. A sniper cannot teleport to a block that is 64 blocks away or less from the enemy intel (default)

9. A sniper cannot teleport while carrying the enemy intel. Medic: Mode 3

1. Swing your pickaxe to heal teammates.

2. Use the /build command to select a structure to make. The next block you place after you run this command, and the direction you are facing will determine the direction, location, and color of the structure.

3. Each structure requires a certain number of kills to make. When you build a structure, it's cost will be subtracted from your current number of kills.

4. Dying will not reset your kill count.

5. Screenshot of the four structures, shown from right to left: http://i.imgur.com/mgonQ.jpg

6. /build 0 - Constructs a wall 7 blocks wide and 2 blocks high. Cost: 2 kills

7. /build 1 - Constructs a bunker around you. Cost: 3 kills

8. /build 2 - Constructs a sniper tower in front of you. Cost: 4 kills

9. /build 3 - Constructs a 26 block long 3 block wide bridge in front of you. Cost: 5 kills Bugs

1. Changing weapons when in the soldier class causes guns to have an amount of ammo that would otherwise be impossible to have under normal conditions. This cannot be fixed with the current client because the server cannot control the client's ammo count. When the user respawns or refills the ammo at the tent the ammo will be set to the correct amount. For now, think of it as a class feature :P Server admins:

1. Download the script to the scripts folder.

2. Remember to add "modes" to the scripts list in config.txt

3. Please add this in the "help" section in config.txt: "/MODE Sets your class mode. Each class has its own special abilities!"

4. Make sure you have the latest pyspades server.

5. You may want to change the "melee_damage" to something like 50.

6. If you want the assassin to remain invisible when they start swinging the pickaxe, you can always set the CLOAK_DISABLE_PICKAXE variable to False. Suggestions:

1. Please keep in mind that I don't have total control over the client. Any suggestions should be able to work with the current client.

2. Block number, ammo count, and grenade number cannot be controlled by the server. The best we can do is refill them to their default values. Update 1:

I've bumped the teleporter recharge rate down to 3 blocks per second. Also I've added options as to whether or not the swinging pickaxe or spade disrupts the cloak. Update 2: Swinging the pickaxe will no longer disable the cloak (default setting) Update 3: I have uploaded a new version where the cloak cooldown is disabled by default. The cooldown just seems to be more of an annoyance than an actual problem during gameplay. Update 4: Bumped maximum cloak energy up to 20 seconds. Bumped teleporter recharge rate down to 2.5 blocks/second Update 5: I've finally fixed the message sending too fast or not at all bug. Update 6: It turns out that I accidentally set the update rate to 0.5, which means that all the countdowns/recharges went twice as fast (oops). Keeping this in mind, I've changed the assassin max energy to 15 seconds (actually a buff...) and the teleporter recharge rate to 3.0 blocks / second (actually a nerf...) Update 7: The script now works again with capture the flag mode Update 8: Fixed a bug where it was impossible for the assassin to kill while cloaked. Update 9: The user will receive a warning now if the mode they select is invalid. Update 10: Fixed a bug where assassins could hit soldiers by shooting them. Fixed a bug where players entered god mode while being invisible as an assassin. Update 11: The sniper can no longer use the SMG to teleport. The builder has been renamed to medic and now has a healing pickaxe that heals one person at a time at a rate of 10 hp/second. The pickaxe now disables the cloak when swung be default (server admins can change this back if they want) Update 12:

Fixed bug when using the /build command. You can now use /b as a shortcut for the build command.

#81171

Your_self

Member

Posted 9 years ago