From c6bed1a911616642226dc326b3c99f337474028e Mon Sep 17 00:00:00 2001 From: Hexah Date: Thu, 19 Jul 2018 21:52:38 +0200 Subject: [PATCH] Add fall speed multiplier & travis --- .travis.yml | 23 +++++ ci/build.sh | 37 ++++++++ ci/test.sh | 12 +++ scripting/Addons/AirDrop_SpawnPoints.sp | 108 ++++++++++++++++++++++++ scripting/AirDropCore.smx | Bin 0 -> 13507 bytes scripting/AirDropCore.sp | 11 ++- 6 files changed, 187 insertions(+), 4 deletions(-) create mode 100644 .travis.yml create mode 100644 ci/build.sh create mode 100644 ci/test.sh create mode 100644 scripting/Addons/AirDrop_SpawnPoints.sp create mode 100644 scripting/AirDropCore.smx diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f300237 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,23 @@ +addons: + apt: + packages: + - lib32z1 + - lib32stdc++6 +language: c +sudo: false +script: +- if [[ $TRAVIS_PULL_REQUEST != "false" ]]; then bash ci/test.sh; fi +- if [[ $TRAVIS_PULL_REQUEST == "false" ]]; then bash ci/build.sh $TRAVIS_TAG; fi + +notifications: + email: false + + +deploy: + provider: releases + api_key: + secure: r0Jac+0NWOAg56HOUF1t6PPPTTWXBvAHVwdMjXgaoPNnkDo53f94IzXMFzao/51PkpM58jrCBr5YNAfZlNtrOiDB2BolJL9m7rd7zyjbETvpBVk3yT3ts56UJBk/uW0t1tLQDSwNgY17KFxx4zfW3a4LjJbYIIXFXFo81jRbNbUqAm08h6Z9nG/Cne8qZ/dnD93LAW79MU7RvVFvhw7jBwrj63Bd8CYgYnKiaJujyiut6wfgnlsmFpMxjRpeqPdS8C5faWnSXPwKPTPYq9zFnkD8p27vEt616VTjmPQrkVKlMUsyNdGEukP+1wcDFDpwLxF8OWUCcE7HTERis6A9ZBSDRB3mvFhh6aiszLOKfUWyAiwFqHYKn+xe6s3TFQEA1qzDmDjnc9saLWYVwtl64izTnJi0K+gv4jEKXO3y+U3ykxoLcRt7qqGZdmfyfs9U+UqQyIBGVUE708Xok8H5f84aTghJ+9/tt7L6EW2BZ4UAkqmtWbXYG4FJlEQ5MOhEe2t1Brm70NaZ8l8SGxFGntq/Q8PA84ggWs+Kf3hqOqoBCXvhfs0pGjQf0wneqUyHoFW13wOB5f78P0YW8QUZACj2JA5NRxOiOORbJddeO21gYhYGpcAqMCE+zQiyDLvezerDtMuQcCjbJj0K2Ja/0xsL6znYnuj0JEjnggrlouY= + file: airdrop.zip + skip_cleanup: true + on: + repo: Hexer10/AirDrop-Core \ No newline at end of file diff --git a/ci/build.sh b/ci/build.sh new file mode 100644 index 0000000..55d473e --- /dev/null +++ b/ci/build.sh @@ -0,0 +1,37 @@ +#!/bin/bash +set -ev + +TAG=$1 + +echo "Download und extract sourcemod" +wget "http://www.sourcemod.net/latest.php?version=1.9&os=linux" -O sourcemod.tar.gz +tar -xzf sourcemod.tar.gz + +echo "Give compiler rights for compile" +chmod +x addons/sourcemod/scripting/spcomp + +echo "Set plugins version" +sed -i "s//$TAG/g" addons/sourcemod/scripting/AirDropCore.sp + +addons/sourcemod/scripting/compile.sh AirDropCore.sp + +echo "Remove plugins folder if exists" +if [ -d "addons/sourcemod/plugins" ]; then + rm -r addons/sourcemod/plugins +fi + +echo "Create clean plugins folder" +mkdir -p build/addons/sourcemod/scripting/include +mkdir build/addons/sourcemod/plugins + +echo "Move plugins files to their folder" +mv addons/sourcemod/scripting/include/airdrop.inc build/addons/sourcemod/scripting/include +mv addons/sourcemod/scripting/AirDropCore.sp build/addons/sourcemod/scripting +mv addons/sourcemod/scripting/compiled/AirDropCore.smx build/addons/sourcemod/plugins + + +echo "Compress the plugin" +mv LICENSE build/ +cd build/ && zip -9rq airdrop.zip addons/ LICENSE && mv airdrop.zip ../ + +echo "Build done" \ No newline at end of file diff --git a/ci/test.sh b/ci/test.sh new file mode 100644 index 0000000..21b9627 --- /dev/null +++ b/ci/test.sh @@ -0,0 +1,12 @@ +#!/bin/bash +set -ev + +echo "Download und extract sourcemod" +wget "http://www.sourcemod.net/latest.php?version=1.9&os=linux" -O sourcemod.tar.gz +tar -xzf sourcemod.tar.gz + +echo "Give compiler rights for compile" +chmod +x addons/sourcemod/scripting/spcomp + +addons/sourcemod/scripting/compile.sh AirDropCore.sp +addons/sourcemod/scripting/compile.sh Examples/AirDropCaller_Decoy.sp \ No newline at end of file diff --git a/scripting/Addons/AirDrop_SpawnPoints.sp b/scripting/Addons/AirDrop_SpawnPoints.sp new file mode 100644 index 0000000..e32ae8d --- /dev/null +++ b/scripting/Addons/AirDrop_SpawnPoints.sp @@ -0,0 +1,108 @@ +#include +#include +#include +#include +#include +//#include +//#include + +#define PLUGIN_AUTHOR "Hexah" +#define PLUGIN_VERSION "1.00" + +#pragma newdecls required +#pragma semicolon 1 + +KeyValues kv; + +Menu pointsMenu; + +public Plugin myinfo = +{ + name = "AirDrop Spawn points", + author = PLUGIN_AUTHOR, + description = "", + version = PLUGIN_VERSION, + url = "github.com/Hexer10/AirDrop-Core" +}; + +public void OnPluginStart() +{ + RegConsoleCmd("sm_airdrops", Cmd_SetSpawn); + + + //Cache points menu. + pointsMenu = new Menu(Handler_MainMenu); + pointsMenu.SetTitle("Choose you action"); + pointsMenu.AddItem("new", "Add new point"); + pointsMenu.AddItem("delete", "Remove existing point"); + pointsMenu.AddItem("list", "List current"); +} + +public Action Cmd_SetSpawn(int client, int args) +{ + if (!client) + { + ReplyToCommand(client, "[SM] In game only commmand!"); + return Plugin_Handled; + } + + pointsMenu.Display(client, MENU_TIME_FOREVER); + return Plugin_Handled; +} + +public void OnMapStart() +{ + PreparePropKv(); +} + +void PreparePropKv() +{ + char sPropPath[PLATFORM_MAX_PATH]; + char sMap[64]; + GetCurrentMap(sMap, sizeof(sMap)); + + BuildPath(Path_SM, sPropPath, sizeof(sPropPath), "configs/%s.airdrops.txt", sMap); //Get the right "map" file + + if (kv != null) + delete kv; + + kv = new KeyValues("AirDropPoints"); + + if (!FileExists(sPropPath)) //Try to create kv file. + if (!kv.ExportToFile(sPropPath)) + SetFailState(" - AirDrops Points - Unable to create file: %s", sPropPath); + + if (!kv.ImportFromFile(sPropPath)) //Import the kv file + SetFailState("- AirDrops Points - Unable to import: %s", sPropPath); +} + +//Menu Handlers +public int Handler_Main(Menu menu, MenuAction action, int param1, int param2) +{ + if (action == MenuAction_Select) + { + char info[64]; + menu.GetItem(param2, info, sizeof(info)); + + if (StrEqual(info, "new")) + { + Menu newPointMenu = new Menu(Handler_NewPoint); + newPointMenu.AddItem("Set to current position"); + newPointMenu.ExitBackButton = true; + newPointMenu.Display(param1, MENU_TIME_FOREVER); + } + else if(StrEqual(info, "delete")) + { + + } + else if(StrEqual(info, "edit")) + { + + } + } + else if (action == MenuAction_End) + { + delete menu; + } + return 1; +} diff --git a/scripting/AirDropCore.smx b/scripting/AirDropCore.smx new file mode 100644 index 0000000000000000000000000000000000000000..3acf9ea4c0c66a557beed5001b785e37918dbec8 GIT binary patch literal 13507 zcmY+KWl&r}v#?2UcejKf!QEjA!QI{6-95MkcPD6YclV$h++l+|yXfK{?_2lYs_#d4 zKhrbaeP(LvoKsUHDXFaX@xzB9E*O~cd>9z?W*8V4)(`LMe=L>=3=G0Mi+qED>BfeE zL3`&X6&RR5?-u`EhE!o-q~9&YyP&GUz%aeX(!DdUItIMU&jSd6zo(?AR2MkOp3Ji?lJ2SFtxWabNerNnz+7$qlvqXr^SE4;XlUQ)QZK@#{PfN&Bwvi z$^L)*_BM|H>;J#7|BQEYceQb}`kz5Ij+Ra^Ebb=nZSS@7fFOT$t*rYzbB-)|S}tYX zugU_?)^eZ2sHw3MRsUcT+5bo_xruDglCk_=mN)g2GbPd8ZX}JMx|y|VQFFbsx=~k4 zU*)N@+tJ|kG{M3^UGtQMAwVL-prNR!Xp+Hh`_M1n?Lzo|rsuQ!=KZFKC!jzO*a3Wa z$vqST@&g}S;?~iID6fd2i*uZo;JW<$w#h?FU!0q>v_Js5$U*S-VQ|nW>{~bDs|4n= z3+A&7=CcmwGd!k{;Rd*c0vd(bI{@1^1G{}5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+3JlERSna78TVX}WonzO|2g+vs`dbz006G+*L{LUv;qAr5O+iJ(x?unOHH8HfX1`j z-M>!uOz{}{dEgu_NSDU5Lj0{o_N@A6?>kow*P=vkGBgl>ZqTFY{6yW$g*}ozN~+=* z67=o${Bwg}sTtz{(SV@X4#N0K&u5n$b39Z6Sh#IG93#`HUK(o8HgQVS=uKvFV8rmW zGC3tiv;hlw0n&f8(I;=p((4v1&p6WAdANDFAR?SDqoO{vXai#vqm~tT+>zd8G9Gq~ zSOd1%hs7Pu$)jXjmlMv;7~>>ky_OYn+)a7sRM4GmgBRyk6ewbF&$n+1wQ28cuZeiL+Ao3f2vA{eR1ZgR~!VLyMl>9TF8qV=uSJ*$j< zjqm$GiXJv{k-c(L-~J-pD#Ya3IC`;mlO~ ztT$SL&IBxiRQt*Mhp|)KN*pd}6?T`4DR3!j)3f1S8}K(cEk_x6H5e`aM-!_Jv*c-` i4wQc?FN@j~Xoy7WO#nTWN3nX20K~v=AM=pvwErLBg!U!? literal 0 HcmV?d00001 diff --git a/scripting/AirDropCore.sp b/scripting/AirDropCore.sp index 3911cad..243afb4 100644 --- a/scripting/AirDropCore.sp +++ b/scripting/AirDropCore.sp @@ -14,6 +14,7 @@ ConVar cv_fMaxDistance; ConVar cv_fLandDistance; ConVar cv_sLandBeam; ConVar cv_bCheckSolid; +ConVar cv_fSpeedMult; ArrayList Array_BoxEnt; ArrayList Array_BoxRunningEnt; @@ -31,7 +32,7 @@ char sLandBeam[64]; #define PLUGIN_AUTHOR "Hexah" -#define PLUGIN_VERSION "1.00" +#define PLUGIN_VERSION "" public Plugin myinfo = { @@ -39,7 +40,7 @@ public Plugin myinfo = author = PLUGIN_AUTHOR, description = "API For developers to call AirDrops", version = PLUGIN_VERSION, - url = "csitajb.it" + url = "github.com/Hexer10/AirDrop-Core" }; /*************************** STARTUP **********************************/ @@ -63,6 +64,7 @@ public void OnPluginStart() cv_fLandDistance = CreateConVar("sm_airdrop_landing_zone", "75.0", "N - Prevent player going into the Box Landing Zone to avoid them to compenetrait when the box. 0 - Disable", _, true, 0.0); cv_sLandBeam = CreateConVar("sm_airdrop_landing_beam", "1", "1 - Make a random colored beam in the landind zone. 0 - Disabled. R,G,B - Colors (Es: 255, 0, 255)"); cv_bCheckSolid = CreateConVar("sm_airdrop_check_solid", "1", "1 - If a box is going to compenerate with the floor stop it. 0 - Allow the box to go thru the floor"); + cv_fSpeedMult = CreateConVar("sm_airdrop_speed_mul", "1", "AirDrop fall speed multiplier"); //Get CvarString Values cv_sBoxPath.GetString(sBoxPath, sizeof(sBoxPath)); @@ -146,6 +148,7 @@ public int CallAirDrop(float vBoxOrigin[3], bool bCallForward) vBoxOrigin[2] += 3000.0; + //This needs to be check it's useless atm while (TR_PointOutsideWorld(vBoxOrigin)) { vBoxOrigin[2] -= 5.0; @@ -290,9 +293,9 @@ public void OnReqFrame(ArrayList DataArray) return; } - vPos[2] -= 0.5; + vPos[2] -= 0.5 * cv_fSpeedMult.FloatValue; TeleportEntity(iBoxEnt, vPos, NULL_VECTOR, NULL_VECTOR); - vPos[2] -= 30.0; + vPos[2] -= 30.0 * cv_fSpeedMult.FloatValue; TeleportEntity(iParaEnt, vPos, NULL_VECTOR, NULL_VECTOR); RequestFrame(OnReqFrame, DataArray);