Page 1 of 1

Some questions

Posted: January 7th, 2012, 10:45 am
by kddekadenz
I'm planning on releasing a pre-compo version of Kelgar on the 10th of January, so I need responses immediately!

1. How can I change the version-number in the bottom left of the main-menu? - solved

2. How can I show waypoints? /showwaypoints 1 from Sauerbraten doesn't work for me.

3. What I need to to add a walk and dying animation to a critter?

Thank you in advance for replying.

Re: Some questions

Posted: January 7th, 2012, 12:19 pm
by arcones
1. I'm not sure actually.

3. You would need to animate it if it is not animated already.

Re: Some questions

Posted: January 8th, 2012, 9:46 am
by kddekadenz
It has a walk animation (I used the uh model), but no dying. But it doesn't play on movement.

Re: Some questions

Posted: January 8th, 2012, 10:52 am
by jSoftApps
1 ) That can be changed in the main.cpp file in sandbox's source code. The vcpp binaries don't work (*cough*Hirato*cough*) so I recommend code::blocks for compiling
2 ) That's a Hirato Question
3 ) Are you sure your configuring it right?

Re: Some questions

Posted: January 8th, 2012, 1:07 pm
by kddekadenz
3. Here is the cfg of the model:

Code: Select all

md5dir "uh/anim/man"



md5anim "forward" "walk2.md5anim" 30	1

md5anim "idle" "idle.md5anim" 30 -1

md5anim "backward" "back.md5anim" 30 1

md5anim "left" "strafeleft.md5anim" 30 1

md5anim "right" "straferight.md5anim" 30 1

md5anim "jump" "jump.md5anim" 50

// md5anim "run" "run.md5anim" 30 1

// md5anim "hold1" "hold1.md5anim" 30 -1

// md5anim "greet" "greet.md5anim" 30 -1

// md5anim "dance1" "dance1.md5anim" 30 -1

// md5anim "lookleft" "lookleft.md5anim" 30 -1

// md5anim "lookright" "lookright.md5anim" 30 -1

// md5anim "sit" "sit.md5anim" 20 -1



md5animpart Spine1



md5anim "forward" "walk2.md5anim" 30	-1

md5anim "idle" "idle.md5anim" 30 -1

md5anim "backward" "back.md5anim" 30 -1

md5anim "left" "strafeleft.md5anim" 30 -1

md5anim "right" "straferight.md5anim" 30 -1

md5anim "jump" "jump.md5anim" 50 -1

// md5anim "run" "run.md5anim" 30 -1

// md5anim "hold1" "hold1.md5anim" 30 1

// md5anim "greet" "greet.md5anim" 30 1

// md5anim "dance1" "dance1.md5anim" 30 1

// md5anim "lookleft" "lookleft.md5anim" 30 1

// md5anim "lookright" "lookright.md5anim" 30 1

// md5anim "sit" "sit.md5anim" 20 -1
And here the script for the critter:

Code: Select all

// Go to player and  attack with dagger

r_script_signal interact [
	if (r_matchref player actor) [
		if (= (r_get_state self) $CS_DEAD) [
			r_signal "loot" actor self 0
		] [
			r_chat self 0
		]
	]
]
r_script_signal spawn [
	r_additem self 9 1
	r_equip self 9 0
//	r_action_wander self 0 96 0
]

r_script_signal loot [
	echo "Nothing to loot"
]

r_script_signal update [
	if (r_cansee self player) [
		r_action_clear self
		r_action_attack self player
	]
]

r_script_signal hit [
	if (= (r_get_state self) $CS_ALIVE) [
		r_action_clear self
		r_action_attack self actor
	]
]

r_script_signal collide [
  if (!= (r_get_faction self) (r_get_faction actor)) [
    r_action_clear self
    r_action_attack self actor
  ]
]