diff options
Diffstat (limited to 'client/map')
| -rw-r--r-- | client/map/environment.gd | 17 | 
1 files changed, 10 insertions, 7 deletions
| diff --git a/client/map/environment.gd b/client/map/environment.gd index f36b51b6..abe8ed6c 100644 --- a/client/map/environment.gd +++ b/client/map/environment.gd @@ -1,10 +1,13 @@  extends Node3D -func update(params: Dictionary): -	$Wind.emitting = params["wind"] > 0.1 -	var a: ParticleProcessMaterial = $Wind.process_material -	a.initial_velocity_max = params["wind"] * 15. -	a.initial_velocity_min = params["wind"] * 15. +func update(active: Array): -	$Rain.emitting = params["rain"] > 0.1 -	$Rain.amount = params["rain"] * 500 +	$Wind.emitting = active.has("wind") +	var a: ParticleProcessMaterial = $Wind.process_material +	# TODO ramp +	a.initial_velocity_max = 15. if active.has("wind") else 0. +	a.initial_velocity_min = 15. if active.has("wind") else 0. + +	# TODO ramp +	$Rain.emitting = active.has("rain") +	$Rain.amount = 500 if active.has("rain") else 0 | 
