Adding Offset Values for Specific AI: Difference between revisions
From The DarkMod Wiki
Jump to navigationJump to search
Springheel (talk | contribs) No edit summary |
Springheel (talk | contribs) No edit summary |
||
Line 11: | Line 11: | ||
"origin" "2 -10 0" | "origin" "2 -10 0" | ||
"angles" "10 190 80" | "angles" "10 190 80" | ||
'''"origin_atdm:ai_builder_guard" "0 0 20" | '''"origin_atdm:ai_builder_guard" "0 0 20"''' | ||
"angles_atdm:ai_builder_guard" "0 0 0"''' | '''"angles_atdm:ai_builder_guard" "0 0 0"''' | ||
"remove" "0" | "remove" "0" | ||
} | } |
Revision as of 00:50, 23 January 2007
All EntityDefs have two values--and Offset value with determines their position relative to a particular joint, and an Angle value that determines what angle they're at.
The default values for these do not always work ideally for every AI, so it is possible to edit the EntityDef to give values for specific AI.
It would look like this:
entityDef prop_helmet_test {
"inherit" "func_static" "model" "models/darkmod/props/kitchen/chamberpot.lwo" "joint" "Head" "origin" "2 -10 0" "angles" "10 190 80" "origin_atdm:ai_builder_guard" "0 0 20" "angles_atdm:ai_builder_guard" "0 0 0" "remove" "0"
}