npc_personality_core
Jump to navigation
Jump to search
Code classes:
CNPC_PersonalityCore
CAI_PlayerAlly
CAI_BaseActor
CAI_BaseNPC
(NPCs)CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
(models)CBaseEntity
(all ents)
npc_personality_core
is a point entity present in Portal 2. It's a personality sphere. Note: Some inputs will not work unless the core is named @sphere
.
Note: Not affected by gel.
Keyvalues[edit | edit source]
- Alt Model Skin
(ModelSkin)
<choices>
- Eye to use for the core.
- 0: Wheatley (cracked)
- 1: Adventure core/Uncracked Wheatley
- 2: Space core
- 3: Fact core
- Use Alternate Skins
(altmodel)
<boolean>
- If set, Alt Model Skin's second option shows undamaged Wheatley instead of Rick.
Inputs[edit | edit source]
- Explode
- Spawns an explosion and gibs on the sphere, but doesn't actually destroy it.
- SetIdleSequence
<string>
- Sets the sphere's idle animation.
- ClearIdleSequence
- Sets the sphere's idle animation to
sphere_floor_idle_neutral
. - PlayAttach
- Plays the socket attaching animation.
PlayDetach- Does nothing.
- PlayLock
- Plays a nodding "lock" animation.
- DisablePickup
- Disallows the player from picking up the sphere.
- EnablePickup
- Allows the player to pick the sphere up. Allowed by default.
- ForcePickup
- Forces the player to pick up the sphere, regardless of any factors. They can drop it freely.
- EnableFlashlight
- Turns on the sphere's flashlight.
- DisableFlashlight
- Turns off the sphere's flashlight.
- DisableMotion
- Forces the sphere to not move. Forces the player to let go of the sphere. Motion is automatically re-enabled if grabbed.
- EnableMotion
- Allows the sphere to move again.
Outputs[edit | edit source]
- OnPlayerPickup
- Fires when picked up.
- OnPlayerDrop
- Fires when dropped.