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
+19
View File
@@ -0,0 +1,19 @@
class entity_pickup_grenadelauncher_t extends entity_pickup_t {
_init() {
super._init();
this._texture = 21;
this._model = model_pickup_grenadelauncher;
}
_update() {
this._yaw += 0.02;
super._update();
}
_pickup() {
audio_play(sfx_pickup);
game_entity_player._weapon_index = game_entity_player._weapons.push(new weapon_grenadelauncher_t) - 1;
this._kill();
}
}