vsTASKER 7 Tutorial
×
Menu
Index

First Shooter

 
Open bdi_stage7 in data/samples/integrations database.
 
Runaway animates 100 Di-Guy entities into a scenario involving a helicopter landing and crashing.
 
Bdi_stage7 is a First Person Shooter that is controlled from a joystick or gamepad (Logitech USB). The purpose is to find enemies and shoot at them without being killed.
You need to press button 3 to aim (and button 3 again to walk).
Use the trigger button to fire.
 
For the integration, base Entity Class got the following defined:
 
vpDiguyCharacter* diguy_man; 
diguyCharacter* man;
 
These pointers are initialized in vsTASKER the same way as it is from a Di-Guy user module:
 
diguy_man = new vpDiguyCharacter();
diguy_man->setName(getName()); 
diguy_man->setCharacterType("afghan_child_crowd");
diguy_man->setAppearance("afghan_girl2");
 
In most of the Logics, controlling Di-Guy character is done using direct API:
 
E:man->force_action("stand_ready", DIGUY_DEFAULT_FLOAT, 1, 0.0f);
 
In the Database Settings, Compilation and Link pane, specific header files and libraries are used to compile and link the vsTASKER code including Di-Gui API and VegaPrime API to generate the final executable.
    
These demos can be recompiled from vsTASKER or/and debugged from vst_vega.sln found in /Runtime/DiGuy directory.
 
Because VegaPrime is used with Lynx, .ACF files are needed (/Runtime/DiGuy). These ACF files are using some models (FLT) and sound files (WAV) that might not be distributed with vsTASKER for copyright reasons.