Skip to content

Damage Permission

Bubbus edited this page Aug 12, 2013 · 4 revisions

Add a safezone with the command:

xcf_addsafezone airbase -500 -500 0 500 500 1000 default

Creates a safezone called "airbase" between the coordinates (-500 -500 0) and (500 500 1000). Adding default at the end makes the safezone uneditable. Only add default at the end when you're sure the safezone is perfect.

Remove a safezone with the command:

xcf_removesafezone airbase

This will remove any safezone with the name airbase. This won't work on the airbase above because it's been set as a default safezone! Removing a safezone won't take effect until you use xcf_savesafezones. This is in case you accidentally remove one.

Save all your safezones with the command:

xcf_savesafezones

This will save all your safezones to a file so they can be automatically restored the next time you load this map (or when you use the xcf_reloadsafezones command). If you add, remove or edit safezones make sure you use this command when you're done or they won't be saved!

Reload all safezones on the map with the command:

xcf_reloadsafezones

If you've accidentally used xcf_removesafezone, you can use this to restore the safezone. This only reloads safezones which have been saved before.

Set the permission mode with the command:

xcf_setpermissionmode battle

This sets the permissions to battle mode. XCF has 4 standard modes:

  • build: You can't damage other people's props unless they've added you to XCF damage permission.
  • battle: You can damage everything that isn't inside a safezone. There may be some exceptions like players and npcs.
  • safe: No damage is allowed.
  • none: All damage is allowed. Be aware: all of these modes rely on special XCF functions to work. If you've added some other ACF addons, they might not comply with damage permission.

Set the DEFAULT permission mode with the command:

xcf_setdefaultpermissionmode battle

This sets the server to start with the battle mode enabled every time this map is played.

Reload the permission modes with the command:

xcf_reloadpermissionmodes

This is only really useful if you're making your own permission modes.

If you want to set your server's default permission mode to something other than build, use xcf_setpermissionmode in your server config.

We're working on moving these commands into tools eventually, so you won't have to mess with coordinates and stuff.

Clone this wiki locally