Perfect Dark Source: Weapon Sets
![Underlinked - Logo.png](/w/images/9/91/Underlinked_-_Logo.png)
![Wikipedia icon](/w/images/thumb/9/9a/Wikipedia_icon_small.png/16px-Wikipedia_icon_small.png)
![Wikipedia icon](/w/images/thumb/9/9a/Wikipedia_icon_small.png/16px-Wikipedia_icon_small.png)
![Wikipedia icon](/w/images/thumb/9/9a/Wikipedia_icon_small.png/16px-Wikipedia_icon_small.png)
January 2024
Perfect Dark: Source bringt einige Waffen- und Itemsets mit sich die je nach Serverconfig oder über Kosnolenbefehl des Admins veränmdert werden können.
Contents
Für Admins
Veränderungen oder modifikationen der Waffensets können vor InGame per Konsole ausgetestet werden und bei gefallen später per notepad an die config "gebunden" werden.
weaponsets.txt
Diese Datei wird von der Mod benötigt um die Waffen-Reihenfolge usw. zu bestimmen. Kann aber auch beliebig verändert werde, je nach Wunsch, ebenso können die Waffenslots die den Waffen eigendlich fest zugewiesen sind verändert werden.
"WeaponSets" { "WeaponSet" { "Name" "Standard" "Slots" { "1" "falcon2" // Weapon #1 "2" "ammo_heavy" "3" "ammo_g_round" "4" "rcp120" "5" "ammo_medium" "6" "ammo_medium" "7" "superdragon" "8" "ammo_heavy" "9" "ammo_g_round" ... "16" "grenade" "17" "ammo_grenade" "18" "ammo_grenade" } } "WeaponSet" { "Name" "Random" "Slots" { "1" "<random>" } } "WeaponSet" { "Name" "Unarmed" "Slots" { "1" "<none>" } } }
Item Namen
!!Namen mit Markierung sind in der aktuellen Version nutzbar!!
<allweaps-old> <allweaps-new> <random> <none> ar34 callisto cmp150 knife crossbow cyclone dartgun devastator dragon dy357 dy357lx falcon2 falcon2-sil falcon2-sco farsight grenade k7avenger laptopgun laser magsec4 mauler mineremote minetimed mineproxy nbomb phoenix rcp120 reaper rpg shotgun slayer sniper superdragon unarmed ammo_standard ammo_medium ammo_heavy ammo_maian ammo_skedar ammo_g_round ammo_rpg ammo_sk_rpg ammo_knives ammo_dart ammo_bolt ammo_shell ammo_magnum ammo_sniper ammo_grenade ammo_nbomb ammo_minetimed ammo_mineremote ammo_mineproxy shield
Konsolenbefehle
- weaponset_load <setname>
- Reload Weapon Set <setname> information from weaponsets.txt, overwrites unsaved changes done to sets during the session. If param is <all> then load all weapon sets.
- weaponset_use <setname>
- Set <setname> as the current weapon set.
- weaponset_modslot <itemslot> <itemnick>
- Modifies existing slot of current set.
Settings.scr
Currently, Perfect Dark: Source does not edit settings_default.scr or settings.scr automatically to include user modifications to weaponsets.txt.
When creating a listen server, the list of weapon sets can be modified by editing settings.scr manually on a text editor. Keep in mind that the index number associated to the set name depends on the order the sets appear on weaponsets.txt. The first set is always index 0.
Indexes 0, 1, 2 and 3 will always try to find Standard, Random, Unarmed and Beta Weapons respectively, no matter where they are located on weaponsets.txt and no matter what the actual sets for those indexes are. Indexes 4, 5, 6 etc will point to their respective indexes, without attempting a name lookup.
So, it is recommended to keep Standard, Random, Unarmed and Beta Weapons at the start of weaponsets.txt and add new sets at the end of the file.
Für Level Designer
To add a weapon spawn compatible with weapon sets the entity has to be placed on the map. Among the many options it includes, the spawning weapon has to be set as "Use Weapon Set" and the weapon set slot to any number. Numbers 1 through 18 under this template are recommended:
Slot 1: Strong Weapon Slot 2: Strong Weapon's Ammo 1 Slot 3: Strong Weapon's Ammo 2 Slot 4: Medium Weapon Slot 5: Medium Weapon's Ammo 1 Slot 6: Medium Weapon's Ammo 2 Slot 7: Weak Weapon Slot 8: Weak Weapon's Ammo 1 Slot 9: Weak Weapon's Ammo 2 (and repeat)
Greater numbers than 18 should be used for the slots when the map requires more than 18 weapon spawns, always keeping in mind the sets of 9 shown above. It is not a requirement that each entity has a different slot number for the mod to run correctly.