From 7d05d259b5c3847ba9c10f20714988649d7795e3 Mon Sep 17 00:00:00 2001 From: ineedbots Date: Sat, 19 Jun 2021 13:03:18 -0600 Subject: [PATCH] init --- .astylerc | 21 +++++++++++++++++++ .gitignore | 34 +++++++++++++++++++++++++++++++ raw/scripts/mp/test-compiled.gsc | Bin 0 -> 216 bytes raw/scripts/mp/test.gsc | 19 +++++++++++++++++ 4 files changed, 74 insertions(+) create mode 100644 .astylerc create mode 100644 .gitignore create mode 100644 raw/scripts/mp/test-compiled.gsc create mode 100644 raw/scripts/mp/test.gsc diff --git a/.astylerc b/.astylerc new file mode 100644 index 0000000..c0e7be1 --- /dev/null +++ b/.astylerc @@ -0,0 +1,21 @@ +# try to mimic the original gsc provided +mode=c +style=allman + +indent=tab +lineend=windows + +pad-oper +pad-paren-in +pad-header + +# delete-empty-lines + +break-blocks +# remove-braces + +indent-switches +indent-cases +indent-after-parens + +remove-comment-prefix diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3dc63c6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,34 @@ +# Ignore everything in repository root +/* + +# Files to not ignore +!/.gitignore + +# Folder to not ignore +!/raw +/raw/* +!/raw/scripts + +!/.astylerc +!/deploy.js +!/deploy.bat +!/z_deploy.bat + +!/raw/maps +/raw/maps/* +!/raw/maps/mp/ +/raw/maps/mp/* +!/raw/maps/mp/bots/ +!/raw/bw-assets +!/raw/bots.txt + +!/README.md + + +*.zip +*.log +*.stat +logs/ +demos/ +images/ +missingasset.csv diff --git a/raw/scripts/mp/test-compiled.gsc b/raw/scripts/mp/test-compiled.gsc new file mode 100644 index 0000000000000000000000000000000000000000..0e6a7cb0efc7df1525cb5f1fd6b29b696cce7020 GIT binary patch literal 216 zcmZp04|e9|Vqjwcf;1rB1*H!F>1jZ`4v23+F_2<#U|?ooVqgR@!Js6yxP&1yFSCRp zIX^EiHMt};g`prPu`;!YAtkdID#jqr7{b8C;Kd*is=}bEE6HF2G>3t~%>LDX1_m{* zXa@dpP9Xp686R71`!7JTXWo;$K(28G;+rvVYny}D+kvLPUZfsru-$n*k= M=K$$wAl(9_0e$``fdBvi literal 0 HcmV?d00001 diff --git a/raw/scripts/mp/test.gsc b/raw/scripts/mp/test.gsc new file mode 100644 index 0000000..8486acf --- /dev/null +++ b/raw/scripts/mp/test.gsc @@ -0,0 +1,19 @@ +init() +{ + for ( ;; ) + { + level waittill ( "connected", player ); + + player thread test(); + } +} + +test() +{ + self endon( "disconnect" ); + + for ( ;; ) + { + wait 0.05; + } +}