Skip to content

Commit

Permalink
Project restructure allowing per-game edt files
Browse files Browse the repository at this point in the history
  • Loading branch information
Alienmario committed May 5, 2024
1 parent 9e52be8 commit 729607d
Show file tree
Hide file tree
Showing 91 changed files with 481 additions and 475 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,19 @@ jobs:
run: |
OUT="/tmp/srccoop"
SM="${OUT}/addons/sourcemod"
EDT_DEST="${SM}/data"
mkdir -p $SM
mkdir -p $EDT_DEST
cp -R plugins $SM
cp -R configs $SM
cp -R data $SM
cp -R gamedata $SM
cp -R scripting $SM
cp -R translations $SM
cp -R edt/common/. $EDT_DEST
if [ -d "edt/${{ matrix.game.dir }}" ]
then
cp -R edt/${{ matrix.game.dir }}/. $EDT_DEST
fi
cp -R gamecontent/common/. $OUT
if [ -d "gamecontent/${{ matrix.game.dir }}" ]
then
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
124 changes: 62 additions & 62 deletions data/srccoop/bm_e17_m1.edt → edt/bms/bm_e17_m1.edt
Original file line number Diff line number Diff line change
@@ -1,62 +1,62 @@
// Script for workshop item 934371395 - Emergency 17
#base "base/coop_base_sp_conversion.edt"
"config"
{
"campaign" "Workshop maps"
"chapter" "Emergency 17"
"features"
{
"KEEP_EQUIPMENT" "1"
}
"equipment"
{
}
"entity"
{
//music fix
//actually there are two ambient_generics responsible for music
//on the map, but only one has output for playing, so I fix only it
"modify"
{
"targetname" "music1"
"set"
{
"message" "music.bms.mscl_amb2"
}
}
}
"checkpoint"
{
"spawn"
{
"origin" "-128 -364 44"
"angles" "0 19.5 0"
}
"after lift"
{
"origin" "-192 2720 229"
"angles" "0 270 0"
"triggerid" "58101"
"output" "OnPressed"
"portal" "-192 2720 -187"
}
"before fight"
{
"origin" "1247 2056 237"
"angles" "0 -90 0"
"triggerid" "72310"
"output" "OnPressed"
}
"after fight"
{
"origin" "176 224 310"
"angles" "0 180 0"
"triggerid" "42727"
"output" "OnFullyClosed"
"bringall" "1"
}
}
}
// Script for workshop item 934371395 - Emergency 17

#base "base/coop_base_sp_conversion.edt"

"config"
{
"campaign" "Workshop maps"
"chapter" "Emergency 17"

"features"
{
"KEEP_EQUIPMENT" "1"
}
"equipment"
{
}
"entity"
{
//music fix
//actually there are two ambient_generics responsible for music
//on the map, but only one has output for playing, so I fix only it
"modify"
{
"targetname" "music1"
"set"
{
"message" "music.bms.mscl_amb2"
}
}
}
"checkpoint"
{
"spawn"
{
"origin" "-128 -364 44"
"angles" "0 19.5 0"
}
"after lift"
{
"origin" "-192 2720 229"
"angles" "0 270 0"
"triggerid" "58101"
"output" "OnPressed"
"portal" "-192 2720 -187"
}
"before fight"
{
"origin" "1247 2056 237"
"angles" "0 -90 0"
"triggerid" "72310"
"output" "OnPressed"
}
"after fight"
{
"origin" "176 224 310"
"angles" "0 180 0"
"triggerid" "42727"
"output" "OnFullyClosed"
"bringall" "1"
}
}
}
156 changes: 78 additions & 78 deletions data/srccoop/bm_e17_m2.edt → edt/bms/bm_e17_m2.edt
Original file line number Diff line number Diff line change
@@ -1,88 +1,88 @@
// Script for workshop item 934371395 - Emergency 17
#base "base/coop_base_sp_conversion.edt"
// Script for workshop item 934371395 - Emergency 17

#base "base/coop_base_sp_conversion.edt"

"config"
{
"campaign" "Workshop maps"
"chapter" "Emergency 17"
"features"
{
"KEEP_EQUIPMENT" "1"
}
"equipment"
{
"item" "item_suit"
"item" "item_battery"
"item" "item_weapon_crowbar"
"item" "item_weapon_357"
"item" "item_weapon_mp5"
"item" "item_weapon_shotgun"
"item" "item_ammo_357"
"item" "item_ammo_mp5"
"item" "item_grenade_mp5"
"item" "item_ammo_shotgun"
"item" "item_ammo_shotgun"
"item" "item_weapon_frag"
{
"campaign" "Workshop maps"
"chapter" "Emergency 17"

"features"
{
"KEEP_EQUIPMENT" "1"
}
"equipment"
{
"item" "item_suit"
"item" "item_battery"
"item" "item_weapon_crowbar"
"item" "item_weapon_357"
"item" "item_weapon_mp5"
"item" "item_weapon_shotgun"
"item" "item_ammo_357"
"item" "item_ammo_mp5"
"item" "item_grenade_mp5"
"item" "item_ammo_shotgun"
"item" "item_ammo_shotgun"
"item" "item_weapon_frag"
}
"entity"
{
// block off previous map
"modify"
{
"classname" "trigger_changelevel"
"map" "bm_e17_m1"
"set"
{
"classname" "func_brush"
"rendermode" "10"
}
}
// block off next map
"add"
{
"classname" "func_brush"
"rendermode" "10"
"functions"
{
"set_model"
{
"origin" "-3400 -4064 -512"
"size" "16 64 64"
}
}
}
//music fix
"modify"
{
"targetname" "combatsong1"
"set"
{
"message" "music.rp.rp1"
}
{
// block off previous map
"modify"
{
"classname" "trigger_changelevel"
"map" "bm_e17_m1"
"set"
{
"classname" "func_brush"
"rendermode" "10"
}
}
// block off next map
"add"
{
"classname" "func_brush"
"rendermode" "10"
"functions"
{
"set_model"
{
"origin" "-3400 -4064 -512"
"size" "16 64 64"
}
}
}
//music fix
"modify"
{
"targetname" "combatsong1"
"set"
{
"message" "music.rp.rp1"
}
}
}
"checkpoint"
{
"spawn"
{
"origin" "-328 -622 149"
"angles" "0 -90 0"
}
"first fight"
{
"origin" "-928 -1488 37"
"angles" "0 180 0"
"triggerid" "12331"
"output" "OnTrigger"
}
"second fight"
{
"origin" "-2927 -2867 -251"
"angles" "0 -90 0"
"triggerid" "34392"
"output" "OnTrigger"
"spawn"
{
"origin" "-328 -622 149"
"angles" "0 -90 0"
}
"first fight"
{
"origin" "-928 -1488 37"
"angles" "0 180 0"
"triggerid" "12331"
"output" "OnTrigger"
}
"second fight"
{
"origin" "-2927 -2867 -251"
"angles" "0 -90 0"
"triggerid" "34392"
"output" "OnTrigger"
}
}
}
Loading

0 comments on commit 729607d

Please sign in to comment.