Facepunch / garrysmod-requests

Feature requests for Garry's Mod
85 stars 24 forks source link

More ACT enumerations #121

Closed SuperHighVoltage closed 6 months ago

SuperHighVoltage commented 10 years ago

Here are a bunch of ACT enums that should be added from a bunch of default NPCs.

ACT_DI_HUNTER_TACKLE
ACT_DI_HUNTER_THROW
ACT_HUNTER_ANGRY
ACT_HUNTER_CHARGE_CRASH
ACT_HUNTER_CHARGE_RUN
ACT_HUNTER_CHARGE_START
ACT_HUNTER_CHARGE_STOP
ACT_HUNTER_DEPLOYRA2
ACT_HUNTER_DODGEL
ACT_HUNTER_DODGEN
ACT_HUNTER_DODGER
ACT_HUNTER_DODGES
ACT_HUNTER_FLINCH_E
ACT_HUNTER_FLINCH_N
ACT_HUNTER_FLINCH_S
ACT_HUNTER_FLINCH_W
ACT_HUNTER_FOUND_ENEMY
ACT_HUNTER_FOUND_ENEMY_ACK
ACT_HUNTER_IDLE_PLANTED
ACT_HUNTER_MELEE_ATTACK1_VS_PLAYER
ACT_HUNTER_RANGE_ATTACK2_UNPLANTED
ACT_HUNTER_SHAKEOFF
ACT_HUNTER_STAGGER
ACT_HUNTER_WALK_ANGRY
ACT_VORTIGAUNT_ANTLION_THROW
ACT_VORTIGAUNT_DEFEND
ACT_VORTIGAUNT_DISPEL
ACT_VORTIGAUNT_FROM_DEFEND
ACT_VORTIGAUNT_STOMP
ACT_VORTIGAUNT_TO_ACTION
ACT_VORTIGAUNT_TO_DEFEND
ACT_VORTIGAUNT_TO_IDLE
ACT_VORTIGAUNT_ZOMBIE_ATTACK
ACT_ANTLION_BURROW_IDLE
ACT_ANTLION_FRUSTRATION1
ACT_ANTLION_WORKER_EXPLODE
ACT_ANTLION_DROWN
ACT_ANTLION_BURROW_IN
ACT_ANTLION_BURROW_OUT
ACT_ANTLION_JUMP_START
ACT_ANTLION_LAND
ACT_ANTLION_DISTRACT_ARRIVED
ACT_ANTLION_DISTRACT
ACT_ANTLION_POUNCE_MOVING
ACT_ANTLION_POUNCE
ACT_ANTLION_CHARGE_OUT
ACT_ANTLION_CHARGE_LOOP
ACT_ANTLION_CHARGE_IN
ACT_ANTLION_ZAP_FLIP
ACT_ANTLION_FLIP
ACT_ANTLION_RUN_AGITATED
ACT_ANTLION_SIDESTEP_LEFT
ACT_ANTLION_SIDESTEP_RIGHT
ACT_CROW_LAND
ACT_CROW_SOAR
ACT_CROW_TAKEOFF
ACT_DOG_CATCH
ACT_DOG_PICKUP
ACT_DOG_PICKUP_PULL
ACT_DOG_THROW
ACT_DOG_WAITING
ACT_RUN_FAST
ACT_HEADCRAB_DROWN
ACT_HEADCRAB_CEILING_LAND
ACT_HEADCRAB_CEILING_FALL
ACT_HEADCRAB_CEILING_DETACH
ACT_HEADCRAB_CEILING_IDLE
ACT_HEADCRAB_CRAWL_FROM_CANISTER_RIGHT
ACT_HEADCRAB_CRAWL_FROM_CANISTER_CENTER
ACT_HEADCRAB_CRAWL_FROM_CANISTER_LEFT
ACT_HEADCRAB_BURROW_IDLE
ACT_HEADCRAB_BURROW_OUT
ACT_HEADCRAB_BURROW_IN
ACT_HEADCRAB_DROWN
ACT_BLACKHEADCRAB_RUN_PANIC
ACT_HEADCRAB_THREAT_DISPLAY
ACT_ICH_BITE_HIT
ACT_ICH_BITE_MISS
ACT_ICH_THRASH
ACT_MANHACK_UNPACK
ACT_MSYNTH_FLINCH_BACK
ACT_MSYNTH_FLINCH_FRONT
ACT_MSYNTH_FLINCH_LEFT
ACT_MSYNTH_FLINCH_RIGHT
ACT_SSCANNER_FLINCH_BACK
ACT_SSCANNER_FLINCH_FRONT
ACT_SSCANNER_FLINCH_LEFT
ACT_SSCANNER_FLINCH_RIGHT
ACT_SSCANNER_OPEN
ACT_CHARGE_END
ACT_CHARGE_MOVE_END
ACT_CHARGE_START
ACT_CHARGE_START_MOVE
ACT_DROPSHIP_DESCEND_IDLE
ACT_DROPSHIP_FLY_IDLE
ACT_DROPSHIP_FLY_IDLE_CARGO
ACT_DROPSHIP_FLY_IDLE_EXAGG
ACT_HELICOPTER_CHRASHING
ACT_HELICOPTER_DROP_BOMB
ACT_STRIDER_FLICKR
ACT_STRIDER_FLICKL
ACT_STRIDER_STOMPR
ACT_STRIDER_STOMPL
ACT_STRIDER_DODGEL
ACT_STRIDER_DODGER
ACT_STRIDER_AIMRA1
ACT_STRIDER_SLEEP
ACT_STRIDER_GESTURE_LOOKR
ACT_STRIDER_GESTURE_DEATH
ACT_STRIDER_GESTURE_LOOKL
ACT_STRIDER_DEPLOY
ACT_STRIDER_CARRIED
ACT_ANTLIONGUARD_UNBURROW
ACT_ANTLIONGUARD_FLINCH_LIGHT
ACT_ANTLIONGUARD_SHOVE_PHYSOBJECT
ACT_ANTLIONGUARD_PHYSHIT_RL
ACT_ANTLIONGUARD_PHYSHIT_RR
ACT_ANTLIONGUARD_PHYSHIT_FL
ACT_ANTLIONGUARD_PHYSHIT_FR
ACT_ANTLIONGUARD_ROAR
ACT_ANTLIONGUARD_CHARGE_ANTICIPATION
ACT_ANTLIONGUARD_CHARGE_HIT
ACT_ANTLIONGUARD_CHARGE_STOP
ACT_ANTLIONGUARD_CHARGE_CRASH
ACT_ANTLIONGUARD_CHARGE_RUN
ACT_ANTLIONGUARD_CHARGE_CANCEL
ACT_ANTLIONGUARD_CHARGE_START
ACT_ANTLIONGUARD_BARK
ACT_ANTLIONGUARD_SEARCH
ACT_ANTLIONGUARD_RUN_FULL
ACT_ANTLIONGUARD_RUN_HURT
ACT_ANTLIONGUARD_SNEAK
ACT_ANTLIONGUARD_PAIN
ACT_ANTLIONGUARD_PEEK_SIGHTED
ACT_ANTLIONGUARD_PEEK_EXIT
ACT_ANTLIONGUARD_PEEK1
ACT_ANTLIONGUARD_PEEK_ENTER
ACT_ANTLIONGUARD_PEEK_FLINCH
ACT_ANTLIONGUARD_COVER_FLINCH
ACT_ANTLIONGUARD_COVER_ADVANCE
ACT_ANTLIONGUARD_COVER_EXIT
ACT_ANTLIONGUARD_COVER_LOOP
ACT_ANTLIONGUARD_COVER_ENTER
robotboy655 commented 10 years ago

* All done *

SuperHighVoltage commented 10 years ago

Here are a few more I came across:

ACT_BUNKER_GUN_ACTIVATE ACT_BUNKER_GUN_ACTIVATE_IDLE ACT_BUNKER_GUN_FIRE ACT_BUNKER_GUN_INACTIVE_IDLE ACT_BUNKER_GUN_RETRACT

ACT_CEILING_TURRET_CLOSE ACT_CEILING_TURRET_CLOSE_IDLE ACT_CEILING_TURRET_DRYFIRE ACT_CEILING_TURRET_FIRE ACT_CEILING_TURRET_OPEN ACT_CEILING_TURRET_OPEN_IDLE ACT_CEILING_TURRET_RELOAD

ACT_FLOOR_TURRET_CLOSE ACT_FLOOR_TURRET_CLOSE_IDLE ACT_FLOOR_TURRET_FIRE ACT_FLOOR_TURRET_OPEN ACT_FLOOR_TURRET_OPEN_IDLE

ACT_GROUND_TURRET_CLOSE_IDLE

ACT_COMBINE_CAMERA_CLOSE ACT_COMBINE_CAMERA_CLOSE_IDLE ACT_COMBINE_CAMERA_OPEN_IDLE

UnderscoreKilburn commented 10 years ago

I can't do that easily because those NPC activities are registered separately from other activities, if I register them like any other activity, there will be conflicts and NPCs will break. I'll try to look for a proper solution but just keep in mind that it's not as easy as adding new enums.

SuperHighVoltage commented 10 years ago

Okay, thanks for having a look.

SuperHighVoltage commented 10 years ago

I'm just going to bump this to see if there is any news

robotboy655 commented 6 months ago

Added the following functions: util.GetActivityNameByID util.GetActivityIDByName

They should enable you to do what you wish, I think?