From c758f93a9de30d19338a6d4fc9da795c2354e7dd Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 10 Nov 2008 18:10:35 +0000 Subject: added impulsesound worldspawn key --- src/model/map.cc | 3 +++ src/model/model.cc | 1 + src/model/model.h | 1 + 3 files changed, 5 insertions(+) diff --git a/src/model/map.cc b/src/model/map.cc index 584240f..6f3ff9e 100644 --- a/src/model/map.cc +++ b/src/model/map.cc @@ -817,6 +817,9 @@ Model * Map::load(std::string const &name) if (mapfile.got_key_int("enginesound", u)) { model->model_enginesound = u; continue; + } else if (mapfile.got_key_int("impulsesound", u)) { + model->model_impulsesound = u; + continue; } else if (mapfile.got_key_color("enginecolor", model->model_enginecolor) ==0) { continue; } diff --git a/src/model/model.cc b/src/model/model.cc index 813515b..3329afe 100644 --- a/src/model/model.cc +++ b/src/model/model.cc @@ -22,6 +22,7 @@ Model::Model(std::string const & name) : { model_radius = 0.5f; model_enginesound = 0; + model_impulsesound = 0; model_tris_detail_count = 0; model_tris_count = 0; diff --git a/src/model/model.h b/src/model/model.h index 35e8971..51f8964 100644 --- a/src/model/model.h +++ b/src/model/model.h @@ -131,6 +131,7 @@ public: math::Vector3f model_minbbox; unsigned int model_enginesound; + unsigned int model_impulsesound; math::Color model_enginecolor; -- cgit v1.2.3