Game Development Community

Different player and Ai Class

by Roi Hojgaard · in Torque Game Engine · 08/02/2007 (11:26 pm) · 1 replies

Hi

I have implemented the killer kork addon ( http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=10278 ).

This works fine. So now I try to make the bots different from my player. By making a new player.cs file called monster.cs, I have managed to give the bots the body of kork. My player is Ava.

Problem is, that I can't seem to make them sounds different, ie the death cry, and pain cry. The bots play Ava's samples. I think this has something to do with the Armor class, but I just can't figure it out.

I tried searching the resources, but can't find anything on this.

Please help.

Thanks

#1
08/03/2007 (12:10 am)
Ok, I figured it out after all. Did this by overriding the playDeathCry() and playPain() functions for the AIPlayer instance, in the aiPlayer.cs file.

Man, I really need to get the hang of this.....