Killswitch/Sandbox – User

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
m (Erentar moved page Killswitch's Sandbox to User:Killswitch/Sandbox: Bot: Moved page)
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Title ==
Regular paragraph of text. Talk talk blah blah.
=== Subtitle ===
Subsection text.
==== Sub-subtitle ====
Even more text.
A config.cpp snippet inside a <nowiki><pre></nowiki> environment:
<pre>class CfgPatches
{
class Something
{
units[] = {};
weapons[] = {};
requiredAddons[] = {};
requiredVersion=1.00;
};
};</pre>
(A "pre environment" will result in tabs being rendered properly. This is useful for presenting properly indented code.)
== OFP/ArmA server config file example ==
<pre>// comments are preceded by "//" and extend to the end of the line
//
// Example server.cfg
//
password = "xyz"; // password required to connect to server
passwordAdmin = "xyzxyz"; // admin password. Use "#login xyzxyz" in global chat in-game to login as admin
// The name of our server
hostname="Example OFP server";
// Welcome message. This is a list of strings
// separated by comma signs. Each string will be
// displayed on a new line. The example motd below
// will display two lines
motd[]= {
"Welcome to the Example OFP server.",
"Have fun!"
};
motdInterval=1; // if motd has multiple lines this setting
// determines the delay in seconds between showing
// lines (default is 5 seconds).
voteMissionPlayers=3; // start voting for missions when 3 players connect
voteThreshold=0.33; // when one third agrees, this is enough to confirm a vote
reportingIP=""; // private server - don't report
// Use "armedass.master.gamespy.com" to
// report to the master server
checkFiles[]={ //list of files to check
"HWTL\dta\data3d.pbo",
"dta\data3d.pbo"
};
kickDuplicate=1; // do not allow duplicate id
// If equalModRequired is set, players will need
// to connect to the server using the *exact same*
// -mod=... shortcut parameter the server is using.
//
// Possible values: 0 and 1 (or false/true, "false"/"true")
// Default: 0 / false / "false"
//
// As an example: if the server was started with
//
//        -mod=@mymod
//
// all players will need to have exactly that parameter
// in their shortcuts. Note that the argument ("@mymod")
// is case significant. In other words, if a player used
// "-mod=@MyMod" connection would be refused.
//
equalModRequired=1;
class Missions {}; // an empty Missions list will lead to
// players being presented with the full
// list of missions the server has.
// Players will have to vote
// to select a mission
</pre>
== Tables ==
=== Artillery module ranges ===
'''NOTE: the ranges are in meters.'''
{| class="wikitable"
|+ Ranges for HE ammo
! Artillery type
! Min range
! Max range
|-
| 2B14
| 100
| 3700
|-
| M252
| 100
| 3700
|-
| D30
| 2375
| 5800
|-
| M119
| 2375
| 5800
|-
| BM-21 Grad
| 3300
| 10100
|-
| M270 MLRS
| 4900
| 15500
|}
{| class="wikitable"
|+ Ranges for WP ammo
! Artillery type
! Min range
! Max range
|-
| 2B14
| 100
| 3700
|-
| M252
| 100
| 3700
|-
| D30
| 2375
| 5800
|-
| M119
| 2375
| 5800
|}
{| class="wikitable"
|+ Ranges for ILLUM ammo
! Artillery type
! Min range
! Max range
|-
| 2B14
| 100
| 3700
|-
| M252
| 100
| 3700
|-
| D30
| 2375
| 5800
|-
| M119
| 2375
| 5800
|}
{| class="wikitable"
|+ Ranges for SMOKE ammo
! Artillery type
! Min range
! Max range
|-
| D30
| 2375
| 5800
|-
| M119
| 2375
| 5800
|}
{| class="wikitable"
|+ Ranges for SADARM ammo
! Artillery type
! Min range
! Max range
|-
| D30
| 2375
| 5800
|-
| M119
| 2375
| 5800
|}
=== Ammo boxes ===
{| class="wikitable"
|+ Simple table using "wikitable"
! Class name
! Parent class
! scope
! Display name
|-
|ReammoBox
|Strategic
|protected
|Ammo Crates
|-
|WeaponHolder
|ReammoBox
|protected
|(none)
|-
|AmmoBoxWest
|ReammoBox
|public
|Ammo US
|-
|WeaponBoxWest
|AmmoBoxWest
|public
|Weapons US
|-
|SpecialBoxWest
|AmmoBoxWest
|public
|Special US
|-
|AmmoBoxEast
|ReammoBox
|public
|Ammo SLA
|-
|WeaponBoxEast
|AmmoboxEast
|public
|Weapons SLA
|-
|SpecialBoxEast
|AmmoboxEast
|public
|Special SLA
|-
|AmmoBoxGuer
|ReammoBox
|public
|Ammo RACS
|-
|WeaponBoxGuer
|AmmoboxGuer
|public
|Weapons RACS
|-
|SpecialBoxGuer
|AmmoboxGuer
|public
|Special RACS
|}
=== Rifles ===
In learning how to do tables, I decided to prettify a list that I found in [[granQ's_sandbox]].
GranQ, feel free to "steal" this back. :-)
{| border="1" cellspacing="0" cellpadding="5" align="left"
|+ Wiki table with custom cell formatting:
! Weapon
! Magazine
! Inventory picture
|-
|AK74
|30Rnd_545x39_AK
|\CA\weapons\data\equip\w_ak74_ca.paa
|-
|AK74GL
|1Rnd_HE_GP25
|\CA\weapons\data\equip\w_ak74gp25_ca.paa
|-
|AKS74UN
|30Rnd_545x39_AKSD
|\CA\weapons\data\equip\w_aks74un_ca.paa
|-
|AKS74PSO
|30Rnd_545x39_AK
|\CA\weapons3\data\W_aks74pso_CA.paa
|-
|SVD
|10Rnd_762x54_SVD
|\CA\weapons\data\equip\w_SVD_ca.paa
|-
|KSVK
|5Rnd_127x108_KSVK
|\CA\weapons3\data\W_ksvk_CA.paa
|-
|PK
|100Rnd_762x54_PK
|\CA\weapons\data\equip\w_pk_ca.paa
|-
|RPG7V
|PG7V, PG7VR
|\CA\weapons\data\equip\w_rpg7_ca.paa
|-
|Strela
|Strela
|\CA\weapons\data\equip\w_9k32_ca.paa
|-
|M16A2
|30Rnd_556x45_Stanag
|\CA\weapons\data\equip\w_m16_ca.paa
|-
|M16A2GL
|1Rnd_HE_M203
|\CA\weapons\data\equip\w_m16m203_ca.paa
|-
|M16A4
|30Rnd_556x45_Stanag
|\CA\weapons3\data\W_m16a4_CA.paa
|-
|M16A4_ACG
|30Rnd_556x45_Stanag
|\CA\weapons3\data\W_m16a4_acg_CA.paa
|-
|M16A4_ACG_GL
|1Rnd_HE_M203
|\CA\weapons3\data\W_m16a4_acg_gl_CA.paa
|-
|M16A4_GL
|1Rnd_HE_M203
|
|-
|M24
|5Rnd_762x51_M24
|\CA\weapons\data\equip\w_m24_green_ca.paa
|-
|M107
|10Rnd_127x99_m107
|\CA\weapons3\data\W_m107_CA.paa
|-
|M240
|100Rnd_762x51_M240
|\CA\weapons\data\equip\w_m240_ca.paa
|-
|M249
|200Rnd_556x45_M249
|\CA\weapons\data\equip\w_m249_ca.paa
|-
|M4
|30Rnd_556x45_Stanag
|\ca\Weapons\Data\equip\w_m4_ca.paa
|-
|M4AIM
|30Rnd_556x45_Stanag
|\CA\weapons\data\equip\w_m4aim_ca.paa
|-
|M4SPR
|20Rnd_556x45_Stanag
|\CA\weapons\data\equip\w_spr_ca.paa
|-
|M4GL
|1Rnd_HE_M203
|\CA\weapons\data\equip\w_m4gl_acog_ca.paa
|-
|M4A1SD
|30Rnd_556x45_StanagSD
|\CA\weapons\data\equip\w_m4SD_aim_ca.paa
|-
|MP5SD
|30Rnd_9x19_MP5SD
|\CA\weapons\data\equip\W_HKM5_SD6_CA.paa
|-
|MP5A5
|30Rnd_9x19_MP5
|\CA\weapons\data\equip\W_HKM5_A5_CA.paa
|-
|M136
|M136
|\CA\weapons\data\equip\W_m136_launcher_CA.paa
|-
|Stinger
|Stinger
|\CA\weapons\data\equip\w_fim92_ca.paa
|-
|Binocular
|
|\CA\weapons\data\equip\w_binocular_ca.paa
|-
|Laserdesignator
|Laserbatteries
|\Ca\weapons\Data\Equip\W_SOFLAM_CA.paa
|-
|NVGoggles
|
|\CA\weapons\data\equip\w_nvg_ca.paa
|}
[[Category:Sandbox]]
[[Category:Sandbox]]

Latest revision as of 03:09, 3 December 2018

Title

Regular paragraph of text. Talk talk blah blah.

Subtitle

Subsection text.

Sub-subtitle

Even more text.

A config.cpp snippet inside a <pre> environment:

class CfgPatches
{
	class Something
	{
		units[] = {};
		weapons[] = {};
		requiredAddons[] = {};
		requiredVersion=1.00;
	};
};

(A "pre environment" will result in tabs being rendered properly. This is useful for presenting properly indented code.)

OFP/ArmA server config file example

// comments are preceded by "//" and extend to the end of the line

//
// Example server.cfg
//
password = "xyz";		// password required to connect to server
passwordAdmin = "xyzxyz";	// admin password. Use "#login xyzxyz" in global chat in-game to login as admin

// The name of our server
hostname="Example OFP server";

// Welcome message. This is a list of strings
// separated by comma signs. Each string will be
// displayed on a new line. The example motd below
// will display two lines
motd[]= {
	"Welcome to the Example OFP server.",
	"Have fun!"
}; 
motdInterval=1; 	// if motd has multiple lines this setting
			// determines the delay in seconds between showing
			// lines (default is 5 seconds).

voteMissionPlayers=3;	// start voting for missions when 3 players connect
voteThreshold=0.33;	// when one third agrees, this is enough to confirm a vote

reportingIP=""; 	// private server - don't report
			// Use "armedass.master.gamespy.com" to
			// report to the master server

checkFiles[]={			//list of files to check
	"HWTL\dta\data3d.pbo",
	"dta\data3d.pbo"
};
kickDuplicate=1;		// do not allow duplicate id

// If equalModRequired is set, players will need
// to connect to the server using the *exact same*
// -mod=... shortcut parameter the server is using.
//
// Possible values: 0 and 1 (or false/true, "false"/"true")
// Default: 0 / false / "false"
//
// As an example: if the server was started with
//
//        -mod=@mymod
//
// all players will need to have exactly that parameter
// in their shortcuts. Note that the argument ("@mymod")
// is case significant. In other words, if a player used
// "-mod=@MyMod" connection would be refused.
//
equalModRequired=1;

class Missions {};	// an empty Missions list will lead to
			// players being presented with the full
			// list of missions the server has.
			// Players will have to vote
			// to select a mission

Tables

Artillery module ranges

NOTE: the ranges are in meters.

Ranges for HE ammo
Artillery type Min range Max range
2B14 100 3700
M252 100 3700
D30 2375 5800
M119 2375 5800
BM-21 Grad 3300 10100
M270 MLRS 4900 15500
Ranges for WP ammo
Artillery type Min range Max range
2B14 100 3700
M252 100 3700
D30 2375 5800
M119 2375 5800
Ranges for ILLUM ammo
Artillery type Min range Max range
2B14 100 3700
M252 100 3700
D30 2375 5800
M119 2375 5800
Ranges for SMOKE ammo
Artillery type Min range Max range
D30 2375 5800
M119 2375 5800
Ranges for SADARM ammo
Artillery type Min range Max range
D30 2375 5800
M119 2375 5800

Ammo boxes

Simple table using "wikitable"
Class name Parent class scope Display name
ReammoBox Strategic protected Ammo Crates
WeaponHolder ReammoBox protected (none)
AmmoBoxWest ReammoBox public Ammo US
WeaponBoxWest AmmoBoxWest public Weapons US
SpecialBoxWest AmmoBoxWest public Special US
AmmoBoxEast ReammoBox public Ammo SLA
WeaponBoxEast AmmoboxEast public Weapons SLA
SpecialBoxEast AmmoboxEast public Special SLA
AmmoBoxGuer ReammoBox public Ammo RACS
WeaponBoxGuer AmmoboxGuer public Weapons RACS
SpecialBoxGuer AmmoboxGuer public Special RACS

Rifles

In learning how to do tables, I decided to prettify a list that I found in granQ's_sandbox.

GranQ, feel free to "steal" this back. :-)

Wiki table with custom cell formatting:
Weapon Magazine Inventory picture
AK74 30Rnd_545x39_AK \CA\weapons\data\equip\w_ak74_ca.paa
AK74GL 1Rnd_HE_GP25 \CA\weapons\data\equip\w_ak74gp25_ca.paa
AKS74UN 30Rnd_545x39_AKSD \CA\weapons\data\equip\w_aks74un_ca.paa
AKS74PSO 30Rnd_545x39_AK \CA\weapons3\data\W_aks74pso_CA.paa
SVD 10Rnd_762x54_SVD \CA\weapons\data\equip\w_SVD_ca.paa
KSVK 5Rnd_127x108_KSVK \CA\weapons3\data\W_ksvk_CA.paa
PK 100Rnd_762x54_PK \CA\weapons\data\equip\w_pk_ca.paa
RPG7V PG7V, PG7VR \CA\weapons\data\equip\w_rpg7_ca.paa
Strela Strela \CA\weapons\data\equip\w_9k32_ca.paa
M16A2 30Rnd_556x45_Stanag \CA\weapons\data\equip\w_m16_ca.paa
M16A2GL 1Rnd_HE_M203 \CA\weapons\data\equip\w_m16m203_ca.paa
M16A4 30Rnd_556x45_Stanag \CA\weapons3\data\W_m16a4_CA.paa
M16A4_ACG 30Rnd_556x45_Stanag \CA\weapons3\data\W_m16a4_acg_CA.paa
M16A4_ACG_GL 1Rnd_HE_M203 \CA\weapons3\data\W_m16a4_acg_gl_CA.paa
M16A4_GL 1Rnd_HE_M203
M24 5Rnd_762x51_M24 \CA\weapons\data\equip\w_m24_green_ca.paa
M107 10Rnd_127x99_m107 \CA\weapons3\data\W_m107_CA.paa
M240 100Rnd_762x51_M240 \CA\weapons\data\equip\w_m240_ca.paa
M249 200Rnd_556x45_M249 \CA\weapons\data\equip\w_m249_ca.paa
M4 30Rnd_556x45_Stanag \ca\Weapons\Data\equip\w_m4_ca.paa
M4AIM 30Rnd_556x45_Stanag \CA\weapons\data\equip\w_m4aim_ca.paa
M4SPR 20Rnd_556x45_Stanag \CA\weapons\data\equip\w_spr_ca.paa
M4GL 1Rnd_HE_M203 \CA\weapons\data\equip\w_m4gl_acog_ca.paa
M4A1SD 30Rnd_556x45_StanagSD \CA\weapons\data\equip\w_m4SD_aim_ca.paa
MP5SD 30Rnd_9x19_MP5SD \CA\weapons\data\equip\W_HKM5_SD6_CA.paa
MP5A5 30Rnd_9x19_MP5 \CA\weapons\data\equip\W_HKM5_A5_CA.paa
M136 M136 \CA\weapons\data\equip\W_m136_launcher_CA.paa
Stinger Stinger \CA\weapons\data\equip\w_fim92_ca.paa
Binocular \CA\weapons\data\equip\w_binocular_ca.paa
Laserdesignator Laserbatteries \Ca\weapons\Data\Equip\W_SOFLAM_CA.paa
NVGoggles \CA\weapons\data\equip\w_nvg_ca.paa