Files
q1k3/source/entity_pickup_grenades.js
T
Dominic Szablewski a844ba46f8 Initial
2021-09-13 10:09:54 +02:00

19 lines
339 B
JavaScript

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();
}
}
}
}