commit e67607bac05859bddfadc1ae6aa81204ce01302a Author: Jack Back Date: Sat Jan 27 12:33:30 2024 +0100 init diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..98b8535 --- /dev/null +++ b/.gitea/workflows/test.yml @@ -0,0 +1,21 @@ +name: test + +on: [push] + +jobs: + test-linux: + name: Test on Linux + runs-on: ubuntu-latest + + steps: + - name: Check out files + uses: actions/checkout@main + + - name: Setup gsc-tool + uses: diamante0018/setup-gsc-tool@main + with: + version: "1.4.0" + + - name: Compile scripts + run: | + gsc-tool -m comp -g iw5 -s pc . diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..232bfc2 --- /dev/null +++ b/LICENSE @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2024, AlterWare +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..7a6f44e --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# IW5 Rawfiles +This repo contains the IW5 Rawfiles for iw5-mod. + +Contributions are welcome! Please follow the guidelines below: + +- Sign [AlterWare CLA](https://alterware.dev/cla) and send a pull request or email your patch at patches@alterware.dev +- Make sure that PRs have only one commit, and deal with one issue only diff --git a/raw/scripts/sp/_cp.gsc b/raw/scripts/sp/_cp.gsc new file mode 100644 index 0000000..17b96ee --- /dev/null +++ b/raw/scripts/sp/_cp.gsc @@ -0,0 +1,10 @@ +main() +{ + if ( getdvar( "scr_damagefeedback" ) == "" ) + setdvar( "scr_damagefeedback", "0" ); + + if ( !getdvarint( "scr_damagefeedback", 0 ) ) + return; + + maps\_utility::_id_17E5(); +}