Signal ​
How np_cellnet turns a position into bars. Everything is computed on the server, every Config.Signal.tick seconds
(2), for every player with a phone. The result goes to np_phone with setNetwork, and only when it changed. What
np_phone then allows (texts, calls, light or full data) is on np_phone → Network.
One tick ​
For each player:
- Phone and SIM. Every 10 seconds (
phoneCheck) np_cellnet checks again whether the player carries a phone item and which SIM is in the pockets (Carriers & plans). - Position, read on the server from the player's ped.
- Jammer. Inside a jammer's radius the phone is jammed: no calls, texts, data or Wi-Fi, not even 911. Nothing else is checked (World → Jammers).
- Zones. A dead zone forces every tower to 0. A weak zone subtracts its
penalty.minZ/maxZlimit a zone in height (the subway is dead only below the streets). - Towers in reach come from a lookup grid, so only a few towers are scored per player.
- Score per tower, 0 to 100 (see below).
- Serving tower: the best tower that is up, scores at least
minScore(6) and belongs to the SIM's carrier (or isshared). If there is none, the best roaming tower, when roaming is allowed (below). - State for np_phone: bars, network type, dBm, tower, load, roaming, Wi-Fi, the plan for Settings → Cellular.
- No service: no SIM, an unpaid plan or no usable tower gives 0 bars. The phone shows SOS (emergency calls only) while any tower hears it (below).
- The number of phones on each tower feeds the next tick's load.
The score ​
reach = range * (1 + min(height, 200) * heightBonus)
score = 100 * (1 - (distance / reach) ^ falloff) -- 0 at or beyond the reach
score = score - environment - zone penalty - congestion
| Factor | Default | Notes |
|---|---|---|
| Distance | falloff = 1.6 |
The curve stays high near the mast and drops fast towards the edge |
| Height | heightBonus = 0.002 |
A 40 m mast reaches 8 % further |
| Interior | -18 |
GetInteriorFromEntity is not 0. Only with the world rule Interiors |
| Underground | -55 |
More than 4 m below the ground (tunnels, subway, basements). Replaces the interior penalty |
| Weather | THUNDER -14, BLIZZARD -12, RAIN -6, SNOW -6, ... |
The weather script's weather when one runs, otherwise the player's own report. Only with the world rule Weather |
| Weak zone | the zone's penalty |
|
| Dead zone | score 0 | |
| Congestion | up to -15 |
Nothing below 70 % load, then up to loadPenalty at 100 % |
The client reports interior, underground and weather every few seconds, and only on a change. The report can only lower the score. The server can't see interiors, so a modified client could skip the interior and underground penalties. It can't skip the weather penalty while a weather script runs, because that script's weather replaces the report (Integrations → Weather).
Bars, type and dBm ​
| Score | Bars |
|---|---|
| 75 and more | 4 |
| 50–74 | 3 |
| 28–49 | 2 |
| 12–27 | 1 |
| below 12 | 0 |
The network type starts at the tower's type and steps down while the score is low: a 5G tower shows LTE below 55,
3G below 32 and E below 16 (Config.Signal.degrade). Above the plan's data allowance the type is capped at 3G (not on
Wi-Fi). At 0 bars the type is none.
dBm maps the score linearly from -121 (score 0) to -51 (score 100). Load is the busier of calls / slots and
attached phones / dataSlots, in %.
The quality ladder ​
What each step means for the player, with np_phone's default minimums (np_phone → Needs):
| State | Status bar | Texts | Calls | Light data (feeds, mail, maps) | Full data (photos, money, uploads) |
|---|---|---|---|---|---|
| 4–2 bars | bars + type | yes | yes | yes | yes |
| 1 bar | 1 bar | yes | yes, with voice drop-outs | yes | Connection too weak |
| 0 bars, no tower | crossed-out bars | wait in the outbox | No Service | No Service | No Service |
| SOS | SOS |
wait in the outbox | 911 / 912 only | No Service | No Service |
| Jammed | crossed-out bars | wait in the outbox | No Service, not even 911 | No Service | No Service |
| Wi-Fi | Wi-Fi icon | yes | yes with Wi-Fi Calling on, else by the bars | yes, no plan usage | yes, no plan usage |
Calls are graded by the weaker side, so a caller with 4 bars still hears drop-outs when the other side has one bar.
SOS ​
The phone shows SOS and allows only emergency calls when it has no usable tower of its own but some tower that is up hears it:
- no SIM card (with
Config.Sim.requireItem), or the phone's plan is unpaid; - no tower of its carrier in reach, and no roaming tower (roaming off, or the player switched Roaming off on the phone).
The second case needs the world rule 911 on any carrier (Config.Rules.emergencyAnyCarrier, on by default). With it
off, a player without coverage of their own gets No Service for 911 too. Without SIM or with an unpaid plan, SOS works
either way. Jammed phones never reach 911.
Roaming ​
A tower serves a SIM as own when it belongs to the SIM's carrier or is shared. It serves as roaming when its
carrier is one of the carrier's roaming.partners (Whiz and Tinkle roam on each other), or when it is a Cayo Perico tower
(cayo = true, roaming for every carrier with roaming.cayo). An own tower always wins over a roaming one.
Roaming is used only when the world rule Roaming is on and the player's phone setting Roaming (np_phone,
Settings → Cellular) is on. The status bar then shows R next to the type.
Failover and capacity ​
- A tower that goes down simply drops out of the scoring: its phones move to the next best tower on the next tick, and the players it served get a toast naming the tower that takes over.
- That tower fills up. Load above 70 % costs score (congestion), so some phones may move on again.
- Calls need a free slot. When the serving tower has as many active calls as
slots, np_cellnet answerscalls.startandcalls.acceptwithnetwork_busy(Network Busy, try again). Payphones and Wi-Fi Calling use no tower slot. - Emergency calls always pass. When a tower is at
slots + emergencyReserve(4), an emergency call ends the newest normal call on that tower (Config.Capacity.preempt). That call ends as Call Failed.
What the player sees ​
The bars and type are in np_phone's status bar, Control Center and Settings → Cellular. The CellNet app's Status
tab adds the score, the tower, dBm and the tower load, and the Field Test (dial *3001#12345#*) lists the serving
cell, the nearby towers with score, dBm, distance and load, and every factor: interior, zone, weather, load, jammed.
| Status | Field Test | No service (SOS) |
|---|---|---|
![]() |
![]() |
![]() |
Tuning ​
- Too much coverage: lower
rangeof the towers (in the editor), or raisefalloffso the signal drops earlier. - Too little indoors: lower
interiorPenalty/undergroundPenalty, or switch the world rule Interiors off. - More bars overall: lower the thresholds in
Config.Signal.bars(np_admin → Signal). - Busy towers: raise
slots/dataSlotsin the editor, or let technicians upgrade them. tickis the cost knob: 2 seconds is responsive; a bigger server can go to 3–4 seconds.


