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_t extends entity_t {
_init() {
this._model = model_pickup_box;
this.s = vec3(12,12,12);
this._yaw += Math.PI/2;
}
_update() {
if (!this._on_ground) {
this._update_physics();
}
this._draw_model();
if (vec3_dist(this.p, game_entity_player.p) < 40) {
this._pickup();
}
}
}