Author Topic: Salvage Mod: Apocalypse  (Read 16899 times)

Salvage Mod: Apocalypse

Credits:
- phydeoux: Original mod idea
- Truce: Scripter
- ORGY clan: Early beta testers
- Maxxuss: Early beta tester
- ATFClan.eu: Dedicated server

Related topics:
- "Salvage [Gametype option idea]"
- "Truce: SUPER AWESOME BADMIN SUPER SALVAGE SURVR!!!!1!1!!!1!"
- "Salvage Mod: Apocalypse"
- "Overthrowing the Lord"
- "Truce's SUPER CUL SALVAGE MODE"
- "Truces server."

Quote
"[This mod] is a great example of real life. Being at the bottom of the chain really sucks. You are weak and have absolutely no power, so you speak out and say that the powerful ones are not treating you fairly. You work hard to try and get to the top, promising yourself that once you get there, you will be much more fair. However, once you actually get to the top, you become just like the tyrants that you once hated. It is extremely hard not to abuse power when no one else has it. ... [This mod] brings out the worst of us." -Xang

Roughly what the script does:

Code: [Select]
Hammer
- Can only swing every 190 ms
- Can hit bricks
  - Will not affect bricks supporting others
  - Will not affect bricks named "static"
  - Will not affect bricks over 180 in volume
  - Will not affect bricks if your pack is full
  - Decreases 1 health from the brick
    - At 0 health, will add the brick to your pack
- The original brick is broken (e.g. "picked up")
- Your pack display is refreshed to show it
- Can hit players
  - Does 10 damage

Wrench
- Can only swing every 540 ms
- Can hit bricks
  - Will not affect bricks named "static"
  - Will not affect bricks over 180 in volume
  - Replenishes 1 health on the brick
    - Will go up to 150% of the default health
- Rounded up to the nearest number if decimal
- Can hit players
  - Replenishes 10 health on the player
    - Will go up to 150% of the default health

Brick cart
- Doesn't allow the user to choose their own bricks
- Bricks shown are those in the user's pack

Selecting bricks
- When a carried brick is selected, brick placer appears
- Can click to put your ghost brick at the position
- Ghost brick is set to the color and shape of the brick

Planting bricks
- Cannot plant bricks outside of the existing build
- If a ghost brick is present, will put the brick down
  - Brick is removed from the pack display
  - Ghost brick is cleared automatically
- Bricks will retain ALL of their original properties
- Will show plant errors if brick can't be planted

Dropping items
- If a weapon was last active, will drop normally
- If a brick was last active, will drop the brick
  - Will not drop if the user has no space infront of them
  - A mini-brick placer is dropped to indicate it's a brick
    - The dropped brick's name is set to the brick's name
      - Will use the item/vehicles's name if it spawns one
- Will disappear forever after 120 seconds
  - Item/vehicle spawns will never disappear
  - Brick is removed from the pack display
  - Ghost brick is cleared automatically

Joining the game
- Will automatically be added to the mod's default minigame

Spawning
- If the user has a checkpoint, will spawn on that
- Otherwise will spawn semi-randomly in the map

Getting killed
- All of the user's carried bricks are dropped on the spot
- All of the user's carried items are dropped on the spot
- Health display updates to show there's no health left

Leaving
- All of the user's carried bricks are dropped on the spot
- All of the user's carried items are dropped on the spot

Being hurt
- If the user is crouching, takes 210% damage (normal)
- If the user has armor, first takes away from that
  - Any remaining damage will be deducted from health

Trust levels
- Everyone has full trust with each other within the server

Health display
- All users have a constant health/armor display
- Rounds the numbers to not show awkward decimals

Default minigame
- Players will spawn as a No Jet player, events can change
- Players will spawn with the hammer and the wrench
- Building is enabled in the minigame (of course :P)
- All players bricks can be used for item/vehicle spawns
- Only certain damage types are turned on for balance
  - Falling damage is enabled
  - Weapon damage is enabled
  - Vehicle damage is enabled
  - Self damage is enabled

Brick item
- Is a mini brick placer tool that acts like an item
- Colored the same as the brick placer ("0.65 0.65 0.65 1")

Picking up bricks
- Will not pick up bricks if your pack is full
  - Deletes the brick item after being picked up
  - Your pack display is refreshed to show it

Touching spawn points
- Will not affect other players' planted spawns
- If it's not already your checkpoint, will set it as so
  - A centerprint shows to confirm that you've set it
  - A beep plays only to you to keep the setting secret

Other functions
- Salvage_Input(%brick)
- Salvage_Output(%scriptObject,%client)
- angleID(%rotation)
- fxDTSBrick::getPrintName(%this) (thanks duplicator)

Disabled functions
- Object-based methods
  - hammerImage::onHitObject
  - wrenchImage::onHitObject
- Server "slash" commands
  - instantUseBrick
  - undoBrick
  - clearBricks
  - clearAllBricks
  - clearBrickGrop
  - magicWand
  - initUploadHandshake
  - reloadBricks
  - createMinigame
  - joinMinigame
  - leaveMinigame
  - teamMessageSent
  - light
  - usePrintGun
  - duplicator (incase it's enabled)
  - fillcan (incase it's enabled)
  - changeMap
  - timescale



Various pictures (are not current)

Before and after:
+ another one
+ another one










A fort Xang and I made in a prior setup:



« Last Edit: December 01, 2010, 03:33:55 PM by Truce »







Some pictures from yesterday.

Hey I so own those chat pics, and in the third pic drak posted i see me in the SSUS base



truce is putting up a reset server now


Nope, me and the boys.



So is this a mod you made/are testing on your server? if it is can I help test by chance? It looks awesome.
EDIT-oh there's a server up, cool nvm XD

Shortly after I wake up tomorrow, I plan to reset the server again since it needs it from time to time to keep the builds fresh. The admins and I agreed it would be a good idea to test run two popular suggestions: brick health based on volume and having permaspawns.

Permaspawns are permanent spawns, if that wasn't obvious enough. Meaning you won't be able to break bricks with vehicles, Rocket Launchers, Sniper Rifles, or Miniguns. You can still break other bricks normally, inlcuding spawn points and ones with emitters, lights, events (doors), Pills, Guns, and Swords. This will force people to build bases around the existing weapons and defend those, rather than hoarding/deleting all the ones in play.

I might also make the wrench be able to heal+overheal players if I'm not lazy.

forget

not a single one of you got my house >:C