Adding Offset Values for Specific AI: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
formatting
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
All EntityDefs have two values -- an Offset value that determines their position relative to their attached joint, and an Angle value that determines what angle they're at.
''This information is basically obselete with our new attachment system.''
 
All EntityDefs for attachable objects have two values -- an '''Offset''' value that determines their position relative to their attached 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.
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.
The default values would be used unless there is a value set for a specific AI:


It would look like this:
It would look like this:


  entityDef prop_helmet_test {
  entityDef prop_helmet_test {
     "inherit"         "func_static"
     "inherit"                           "func_static"
     "model"         "models/darkmod/props/kitchen/chamberpot.lwo"   
     "model"                             "models/darkmod/props/kitchen/chamberpot.lwo"   
     "joint"         "Head"     
     "joint"                             "Head"     
     "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"
  }
  }
That would set a different set of values for the builder guard AI.


[[Category:Tutorial]]
[[Category:Tutorial]]
[[Category:Editing]]
[[Category:Editing]]

Latest revision as of 01:04, 15 December 2009

This information is basically obselete with our new attachment system.

All EntityDefs for attachable objects have two values -- an Offset value that determines their position relative to their attached 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.

The default values would be used unless there is a value set for a 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"
}

That would set a different set of values for the builder guard AI.