generic ambient noisemaker #241
Aliases: generic ambient noisemaker
3 verbs · 19 properties · 0 children
Verbs
| Verb | Spec | Flags | Definer | Lines |
|---|---|---|---|---|
look_place_msg | this none this | rxd | #241 | 1 |
heartbeat | this none this | rxd | #241 | 5 |
pulse | this none this | rxd | #241 | 8 |
Properties
| Property | Definer | Flags | Owner | Value |
|---|---|---|---|---|
heart | #241 | rc | #361 | 0 |
last_heartbeat | #241 | rc | #361 | 0 |
noise_chance | #241 | rc | #361 | 3 |
min_frequency | #241 | rc | #361 | 180 |
last_noise_time | #241 | r | #361 | 0 |
direction | #241 | rc | #361 | #-1 |
noise_msg | #231 | rc | #361 | <clear> |
default_volume | #231 | rc | #361 | <clear> |
color | #231 | rc | #361 | <clear> |
aliases | #1 | rc | #361 | {"generic ambient noisemaker"} |
description | #1 | rc | #361 | <clear> |
object_size | #1 | r | #29 | {1823, 1298434525} |
hidden_verbs | #1 | rc | #361 | <clear> |
phelp_msg | #1 | rc | #361 | <clear> |
weight | #1 | rc | #361 | <clear> |
owner_verbs | #1 | rc | #361 | <clear> |
plural_name | #1 | rc | #361 | <clear> |
client_image | #1 | rc | #361 | <clear> |
listening | #1 | rc | #361 | <clear> |
Ancestry
Ancestors (nearest first): #231 generic noise → #1 root
Children: none
Call graph
Source
look_place_msg
Referenced by
none
Source
1return " ";
heartbeat
Referenced by
none
Source
1if (random(100) <= this.noise_chance) 2if ((time() - this.last_noise_time) >= this.min_frequency) 3this:pulse(); 4endif 5endif
pulse
Referenced by
- #241:heartbeat line 3:
this:pulse
Source
1this.last_noise_time = time(); 2if (valid(this.direction)) 3where = this.direction.otherside.location; 4this:sound_in(where, this, {}, this.default_volume, this.direction.otherside); 5this.direction.otherside.location:make_noise(this, this.direction); 6else 7this.location:make_noise(this); 8endif