Question for in Game coding?

  • Thread starter Thread starter Berlitzer
  • Start date Start date
B

Berlitzer

Guest
First things first, I know nothing about the capabilities of programming w/in half life.

That being said.........Here is a situation that i was wondering if it is possible to accomplish.


Say within the game you walk up to a character. I would like to have the user be able to press a particular button in order to "engage" in a preset dialog with a computer character.

This is exactly what i need. You walk up to a character, push a particular button to start the "conversation". The user must hold down an "action" button in order for the computer character to continually speak. The computer character would be programmed to have a set line such as "Hi, my name is bob, you must do so and so" but the character only speaks while that particular button is continuously pushed. Think of that button as a play button.

So compare that to you watching a video on the vcr. The video will only play if you are continually pressing a play button....when you release the "play" button, the character will "pause" his dialog. When you press the play button again, the character will continue the dialog from where he left off.

Is this possible to program?
 
Well of course it is, but I dont see the gameplay dynamics of it, and why it would be used.
 
Personally I wouldn't find it nice to have to have a button pressed all the time, though it is perfectly possible to create such a system.
 
Perfect.


You are right it doesn't make much sense, but it is perfect for what I need. On down the road i'll share why its needed.

This won't make much sense either, but I would like to use Half Life 2 to create a game where you just run around and do different tasks such as talk to people and explore. Yes it sounds retarded, but it is for something at work for kids and cannot contain any sort of violence. So no guns, or aliens, or any of that. It is fine to use the premade characters in the game, i would just have to program them myself as far as what i want them to say.

I do not intend on making my own characters or models or any of that and would use everything that the game already comes with as far as vehicles and buildings etc.

I know HL2 will not be out for a little while, but where would you guys recommend me doing my homework to be able to program this sort of thing until then?

Thanks....will explain everything down the road.
 
id suggest downloading halflife SDK and just start working on that
 
Software Development Kit.
Its a part of the code used in HL (or the game you got the SDK from) so you can adapt it to your wishes, creating new things.
 
Back
Top