home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Classic Fond 52
/
ClassicFond52.iso
/
GAMES
/
DROIDW.RAR
/
DWCD.GOB
/
mission_cog_00_ronto.cog
< prev
next >
Wrap
Text File
|
1998-11-04
|
798b
|
47 lines
symbols
message startup
message pulse
message converse
thing ronto
sound walkgrunt=00tRonto01.wav
sound talkgrunt0=00tRonto02.wav
sound talkgrunt1=00tRonto03.wav
int conversationactive=0 local
end
code
startup:
setpulse(3);
return;
pulse:
if (rand()>0.75) {
playsoundthing(walkgrunt, ronto, 1.0, -1, -1, 0);
}
return;
converse:
responseID=dwGetplayerresponse();
if (responseid==0&&!ConversationActive) {
conversationactive=1;
if (rand()>0.5) playsoundthing(talkgrunt0, ronto, 1.0, -1, -1, 0);
else playsoundthing(talkgrunt1, ronto, 1.0, -1, -1, 0);
conversationactive=0;
}
return;
end