//
//////////////////////////////////////////////////////////////
-.float triggergravity;
+.float trigger_gravity_active;
.entity trigger_gravity_check;
void trigger_gravity_check_think()
{
// It the player has left the gravity trigger, this will be allowed to reach 0 and indicate that.
if(self.cnt <= 0)
{
- dprint("XXXXXXXXXXXXXXXXXXXXXXXXXX "); // temporary execution test
self.owner.gravity = 0;
- self.owner.triggergravity = 0;
+ self.owner.trigger_gravity_active = 0;
remove(self);
}
else
{
EXACTTRIGGER_TOUCH;
- if(!other.triggergravity)
+ if(!other.trigger_gravity_active)
{
- other.triggergravity = 1;
+ other.trigger_gravity_active = 1;
other.trigger_gravity_check = spawn();
other.trigger_gravity_check.owner = other;
other.trigger_gravity_check.think = trigger_gravity_check_think;
target: must point to a target_position
*/
-/*QUAKED trigger_gravity (.5 .5 .5) ?
+/*QUAKED trigger_gravity (.5 .5 1) ?
An area where gravity differs from the rest of the map.
-This acts as a modifier from the normal gravity (sv_gravity). eg: 0.5 is half of the normal gravity, 2 is twice the normal gravity.
+This acts as a modifier over the normal gravity (sv_gravity). eg: 0.5 is half the normal gravity, 2 is twice the normal gravity.
-------- KEYS --------
-gravity: the gravity in this area
-noise: sound file to play when an entity enters this, leave empty to disable
+gravity: gravity offset in this area
+noise: sound to play when an entity enters the gravity zone, leave empty to disable
*/
\ No newline at end of file