Skip to content

Commit

Permalink
release part 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ate47 committed Jul 24, 2024
1 parent c991a70 commit 68fde95
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 3 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,14 @@ YouTube link : https://youtu.be/-eEuGDKdN5I
### Part 2

Release : https://github.com/ate47/demo_mods/releases/tag/ep2
YouTube link : https://youtu.be/a1PYKZ9h4Y0
YouTube link : https://youtu.be/a1PYKZ9h4Y0

### Part 3

Release : https://github.com/ate47/demo_mods/releases/tag/ep3
YouTube link : https://youtu.be/OmvfBsqDUGE

### Part 4

Release : https://github.com/ate47/demo_mods/releases/tag/ep4
YouTube link : https://youtu.be/xXbxS5MVCPE
11 changes: 9 additions & 2 deletions demo/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,15 @@
"hooks": [
"scripts/mp_common/bb.gsc"
]
},
{
"type": "scriptparsetree",
"name": "scripts/atian_mods/zm_demo.gsc",
"path": "zm_demo.gscc",
"hooks": [
"scripts/zm_common/load.gsc"
]
}
],
"cache": [
]
"cache": []
}
53 changes: 53 additions & 0 deletions demo/zm_demo.gsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#using scripts\core_common\values_shared;
#using scripts\core_common\system_shared;
#using scripts\core_common\callbacks_shared;
#using scripts\core_common\util_shared;
#using scripts\core_common\array_shared;
#using scripts\core_common\clientfield_shared;

#namespace zm_demo;


function autoexec __init__system__() {
system::register("zm_demo", &__init__, &__main__);
}

function __init__() {
callback::on_spawned(&on_player_spawned);
}

function __main__() {

}

function on_player_spawned() {
level endon(#"end_game", #"game_ended");
self endon(#"disconnect", #"spawned_player");

wait 1;

self val::set(#"zm_demo_lazy", "ignoreme", true);

while (true) {
self.score = 42000;

// https://github.com/ate47/t8-atian-menu/blob/master/scripts/core_common/key_mgr.gsc#L146

if (self meleebuttonpressed()) {
self iprintlnbold("Melee !");

//self takeweapon(self getcurrentweapon());
weapon = getweapon(#"ar_accurate_t8"); // ICR-7
self giveweapon(weapon);
self switchtoweapon(weapon);

do {
waitframe(1);
} while (self meleebuttonpressed());
}

waitframe(1);
}

}

0 comments on commit 68fde95

Please sign in to comment.