Page 1 of 1

MovieCube: new register... commands, attachments for chars

Posted: January 20th, 2010, 5:13 pm
by offtools
hi,

i added new register commands to add playermodels and items. i will add it to the wiki soon:

commands for the map.cfg:

Code: Select all

registercharactermodel uh/chars/man //added as playermodel 0
registercharactermodel rc //added as playermodel 1

registercharacteritem 0 0 uh/attach/hat 0 //params: playermodel, bodypart, model, anim rule, added as item 0
registercharacteritem 0 16 uh/attach/lshoe 0 //added as item 1
registercharacteritem 0 17 uh/attach/rshoe 0 added as item 2
registercharacteritem 0 9 uh/attach/flag 0 //added as item 3
attach stuff onto player:

Code: Select all

playerattach 0
playerattach 1

playerdetach 0 //detach item 0
playerdetach 2
attach stuff onto characters:

Code: Select all

appendactionattach charname 0 0 //params: charname, state - should be 0, item as above
appendactiondetach charname 0 0
offtools.