Difference between revisions of "Script Parameters"

From Wolfire Games Wiki
Jump to: navigation, search
(instructions on how to add missing parameters)
(Reflection Capture: Added link to more info about reflection capture objects)
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The parameters here can be changed using the Scenegraph window.
+
:''This page covers non-hotspot object script parameters only. For hotspot specific script parameters, see [[Hotspots]]. ''
  
Some parameters might not exist by default. If that's the case you simply need to press the relevant "New parameter" button and type in the exact same name (including big/small letters).
+
Script parameters can be set per object (and Level) and are used to pass parameters to an underlying script.
 +
 
 +
The script parameters for the selected object can be most easily changed using the [[Editor_Interface#Selected_Window|selected window]].
 +
 
 +
Some parameters might not exist by default. If that's the case you simply need to press the "New parameter" button and type in the exact same name (including big/small letters).
 +
 
 +
== Character ==
 +
=== Stats ===
 +
{| class="wikitable"
 +
|-
 +
! Parameter !! Type !! Description
 +
|-
 +
! Attack Damage
 +
| float
 +
| The higher this is, the more health is taken from attacked characters.
 +
|-
 +
! Attack Knockback
 +
| float
 +
| The higher this is, the more physics force is applied to attacked characters.
 +
|-
 +
! Attack Speed
 +
| float
 +
| The higher this is, the faster attack animations play.
 +
|-
 +
! Damage Resistance
 +
| float
 +
| The higher this is, less health this character loses when it takes damage.
 +
|-
 +
! Knockout shield
 +
| int
 +
| How many times the character needs to lose their footing before they start taking real damage.
 +
|-
 +
! Movement Speed
 +
| float
 +
| How fast the character moves when running.
 +
|}
 +
 
 +
=== AI ===
 +
{| class="wikitable"
 +
|-
 +
! Parameter !! Type !! Description
 +
|-
 +
! Aggression
 +
| float
 +
| How often this AI should attempt to attack.
 +
|-
 +
! Block Follow-up
 +
| float
 +
| How often this AI should attempt a shoulder throw after blocking an attack.
 +
|-
 +
! Block Skill
 +
| float
 +
| How often this AI should block attacks.
 +
|-
 +
! Focus FOV distance
 +
| float
 +
| How far the AI can see, in meters.
 +
|-
 +
! Focus FOV horizontal
 +
| float
 +
| How wide the AI's field of view is, in degrees.
 +
|-
 +
! Focus FOV vertical
 +
| float
 +
| How tall the AI's field of view is, in degrees.
 +
|-
 +
! Peripheral FOV distance
 +
| float
 +
| How far the AI can see in its close proximity, in meters.
 +
|-
 +
! Peripheral FOV horizontal
 +
| float
 +
| How wide the AI's near field of view is, in degrees.
 +
|-
 +
! Peripheral FOV vertical
 +
| float
 +
| How tall the AI's near field of view is, in degrees.
 +
|-
 +
! Ground Aggression
 +
| float
 +
| How often the AI should attack an opponent that's ragdolled.
 +
|-
 +
! Hearing Modifier
 +
| float
 +
| A multiplier for the distance at which that sounds can be heard.
 +
|-
 +
! scared
 +
| -
 +
| Makes the AI run away from enemies.
 +
|-
 +
! Stick To Nav Mesh
 +
| -
 +
| Removes physics calculations for this NPC's movement to ensure they do not fall off cliffs etc.
 +
|-
 +
! Throw Counter Probability
 +
| float
 +
| Disables this NPC's ability to block shoulder throws.
 +
|-
 +
! Throw Trainer
 +
| -
 +
| Changes sound when shoulder throwing this character. If tutorials are on, it also makes the character invulnerable to jump kicks, makes them block all attacks, and sets their health really low when their KO shield is gone. This is used on the first enemy in the "Slaver Path" level in the Overgrowth story.
 +
|-
 +
! Weapon Catch Skill
 +
| float
 +
| Changes the NPC's ability to grab thrown weapons in the air.
 +
|}
 +
 
 +
'''TODO: Exactly how does focus/peripheral FOV work?
 +
 
 +
=== Visual ===
 +
{| class="wikitable"
 +
|-
 +
! Parameter !! Type !! Description
 +
|-
 +
! Character Scale
 +
| float
 +
| The higher this is, the bigger the character is.
 +
|-
 +
! Ear Size
 +
| float
 +
| How big the ears are.
 +
|-
 +
! Fat
 +
| float
 +
| How heavy the character is.
 +
|-
 +
! Left handed
 +
| bool
 +
| If checked, the character uses weapons in their left hand instead of their right hand.
 +
|-
 +
! Muscle
 +
| float
 +
| How bulky the character is.
 +
|}
 +
 
 +
=== Other ===
 +
{| class="wikitable"
 +
|-
 +
! Parameter !! Type !! Description
 +
|-
 +
! Cannot Be Disarmed
 +
| bool
 +
| If checked, this character cannot have its weapon taken away.
 +
|-
 +
! Static
 +
| bool
 +
| If checked, this character can't move and has no AI.
 +
|-
 +
! Teams
 +
| string
 +
| All characters that share at least one team can't attack each other. A character can be on more than one team if you just separate them by commas, for example <code>team1, team2, team3</code>
 +
|}
  
 
== Level ==
 
== Level ==
Line 8: Line 159:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! Parameter !! Description
+
! Parameter !! Type !! Description
 
|-
 
|-
 
! Achievements
 
! Achievements
 +
| string
 
| Decide which challenges you can complete on the level, they appear on the level end screen.
 
| Decide which challenges you can complete on the level, they appear on the level end screen.
 
|-
 
|-
 
! Custom Shader
 
! Custom Shader
| Here you can specify certain shader defines to change how the level is rendered. '''TODO: Create and link to list of shader defines that can be used'''
+
| string
 +
| Here you can specify a list of shader defines (e.g. <code>'''#TEST_CLOUDS_2 #SNOW_EVERYWHERE'''</code> - [[Shader_And_Weather_Effects#Weather_Effects.2FWorld_Shaders|full list here]]) to change how the level is rendered.
 
|-
 
|-
 
! Fog amount
 
! Fog amount
 +
| float
 
| Sets the thicknoess of the atmosphere and thus how far you can see.
 
| Sets the thicknoess of the atmosphere and thus how far you can see.
 +
|-
 +
! GPU Particle Field
 +
| string
 +
| Here you can specify a list of shader defines (e.g. <code>'''#SNOW #MED'''</code> - [[Shader_And_Weather_Effects#Particles|full list here]]) to add global particle effects.
 
|-
 
|-
 
! HDR Black point
 
! HDR Black point
 +
| float
 
| Sets what brightness should be regarded as black.
 
| Sets what brightness should be regarded as black.
 
|-
 
|-
 
! HDR Bloom multiplier
 
! HDR Bloom multiplier
 +
| float
 
| Decides how much light pixels bleed.
 
| Decides how much light pixels bleed.
 
|-
 
|-
 
! HDR White point
 
! HDR White point
 +
| float
 
| Sets what brightness should be regarded as white.
 
| Sets what brightness should be regarded as white.
 
|-
 
|-
 
! Level Boundaries
 
! Level Boundaries
 +
| bool
 
| If this is checked characters will be pushed back into the level when they try to go past a certain point.
 
| If this is checked characters will be pushed back into the level when they try to go past a certain point.
 
|-
 
|-
 
! Objectives
 
! Objectives
 +
| string
 
| Set the goal of the level.
 
| Set the goal of the level.
 
|-
 
|-
 
! Sky Brightness
 
! Sky Brightness
 +
| float
 
| Adjust how bright the sky should be.
 
| Adjust how bright the sky should be.
 
|-
 
|-
 
! Sky Rotation
 
! Sky Rotation
 +
| int
 
| Move the sky around.
 
| Move the sky around.
 
|-
 
|-
 
! Sky Tint
 
! Sky Tint
 +
| RGB
 
| Makes the sky have a specified color.
 
| Makes the sky have a specified color.
 
|}
 
|}
 +
 +
== Reflection Capture ==
 +
{| class="wikitable"
 +
|-
 +
! Parameter !! Type !! Description
 +
|-
 +
! Global
 +
| int
 +
| If 1, the reflection capture is global and will affect the entire level, if it's not 1, it's local
 +
|}
 +
 +
For more information about Reflection Capture objects, see the [[Lighting#Reflection_Capture|lighting]] article.
 +
 +
[[Category: Overgrowth]]
 +
[[Category: Modding]]

Latest revision as of 09:36, 7 May 2018

This page covers non-hotspot object script parameters only. For hotspot specific script parameters, see Hotspots.

Script parameters can be set per object (and Level) and are used to pass parameters to an underlying script.

The script parameters for the selected object can be most easily changed using the selected window.

Some parameters might not exist by default. If that's the case you simply need to press the "New parameter" button and type in the exact same name (including big/small letters).

Character

Stats

Parameter Type Description
Attack Damage float The higher this is, the more health is taken from attacked characters.
Attack Knockback float The higher this is, the more physics force is applied to attacked characters.
Attack Speed float The higher this is, the faster attack animations play.
Damage Resistance float The higher this is, less health this character loses when it takes damage.
Knockout shield int How many times the character needs to lose their footing before they start taking real damage.
Movement Speed float How fast the character moves when running.

AI

Parameter Type Description
Aggression float How often this AI should attempt to attack.
Block Follow-up float How often this AI should attempt a shoulder throw after blocking an attack.
Block Skill float How often this AI should block attacks.
Focus FOV distance float How far the AI can see, in meters.
Focus FOV horizontal float How wide the AI's field of view is, in degrees.
Focus FOV vertical float How tall the AI's field of view is, in degrees.
Peripheral FOV distance float How far the AI can see in its close proximity, in meters.
Peripheral FOV horizontal float How wide the AI's near field of view is, in degrees.
Peripheral FOV vertical float How tall the AI's near field of view is, in degrees.
Ground Aggression float How often the AI should attack an opponent that's ragdolled.
Hearing Modifier float A multiplier for the distance at which that sounds can be heard.
scared - Makes the AI run away from enemies.
Stick To Nav Mesh - Removes physics calculations for this NPC's movement to ensure they do not fall off cliffs etc.
Throw Counter Probability float Disables this NPC's ability to block shoulder throws.
Throw Trainer - Changes sound when shoulder throwing this character. If tutorials are on, it also makes the character invulnerable to jump kicks, makes them block all attacks, and sets their health really low when their KO shield is gone. This is used on the first enemy in the "Slaver Path" level in the Overgrowth story.
Weapon Catch Skill float Changes the NPC's ability to grab thrown weapons in the air.

TODO: Exactly how does focus/peripheral FOV work?

Visual

Parameter Type Description
Character Scale float The higher this is, the bigger the character is.
Ear Size float How big the ears are.
Fat float How heavy the character is.
Left handed bool If checked, the character uses weapons in their left hand instead of their right hand.
Muscle float How bulky the character is.

Other

Parameter Type Description
Cannot Be Disarmed bool If checked, this character cannot have its weapon taken away.
Static bool If checked, this character can't move and has no AI.
Teams string All characters that share at least one team can't attack each other. A character can be on more than one team if you just separate them by commas, for example team1, team2, team3

Level

The level parameters can be accessed by bringing up the scenegraph window, expanding "Level" at the top, and then "Script Params".

Parameter Type Description
Achievements string Decide which challenges you can complete on the level, they appear on the level end screen.
Custom Shader string Here you can specify a list of shader defines (e.g. #TEST_CLOUDS_2 #SNOW_EVERYWHERE - full list here) to change how the level is rendered.
Fog amount float Sets the thicknoess of the atmosphere and thus how far you can see.
GPU Particle Field string Here you can specify a list of shader defines (e.g. #SNOW #MED - full list here) to add global particle effects.
HDR Black point float Sets what brightness should be regarded as black.
HDR Bloom multiplier float Decides how much light pixels bleed.
HDR White point float Sets what brightness should be regarded as white.
Level Boundaries bool If this is checked characters will be pushed back into the level when they try to go past a certain point.
Objectives string Set the goal of the level.
Sky Brightness float Adjust how bright the sky should be.
Sky Rotation int Move the sky around.
Sky Tint RGB Makes the sky have a specified color.

Reflection Capture

Parameter Type Description
Global int If 1, the reflection capture is global and will affect the entire level, if it's not 1, it's local

For more information about Reflection Capture objects, see the lighting article.