This commit is contained in:
Dominic Szablewski
2021-09-13 09:34:08 +02:00
commit a844ba46f8
95 changed files with 11727 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
class entity_pickup_grenades_t extends entity_pickup_t {
_init() {
super._init();
this._texture = 25;
this._model = model_pickup_grenades;
}
_pickup() {
for (let w of game_entity_player._weapons) {
if (w instanceof(weapon_grenadelauncher_t)) {
w._ammo += 10;
audio_play(sfx_pickup);
this._kill();
}
}
}
}