described in the "string.txt" file.
ddialog (int) - deletes given dialog (if no argument or -1, deletes the last
dialog). Does not work when actually playing a dialog.
+fixtype (int) (int) - fixes the type (2nd arg) of the given dialog (1st arg).
play (int) - plays given dialog.
+fixrotation - when playing a dialog, sets the in-dialog yaw of the current
+ participant to its out-of-dialog yaw value.
Graphics
~~~~~~~~
void ch_fixdialog(const char* args)
{
char buf1[32];
- int whichdi;
+ int whichdlg = 0;
- sscanf(args, "%d %31s", &whichdi, buf1);
+ sscanf(args, "%d %31s", &whichdlg, buf1);
std::string filename = std::string("Dialogues/") + buf1 + ".txt";
- Dialog::dialogs[whichdi] = Dialog(Dialog::dialogs[whichdi].type, filename);
+ Dialog::dialogs[whichdlg] = Dialog(Dialog::dialogs[whichdlg].type, filename);
}
void ch_fixtype(const char* args)
{
- int dlg;
- sscanf(args, "%d", &dlg);
- Dialog::dialogs[0].type = dlg;
+ int whichdlg = 0;
+ int type = 0;
+ sscanf(args, "%d %d", &whichdlg, &type);
+ Dialog::dialogs[whichdlg].type = type;
}
void ch_fixrotation(const char*)
XYZ coords;
XYZ velocity;
- //~ XYZ proportionhead;
- //~ XYZ proportionlegs;
- //~ XYZ proportionarms;
- //~ XYZ proportionbody;
-
float unconscioustime;
bool immobile;