@ -443,13 +443,13 @@ PF_CONSOLE_BASE_CMD( SampleCmd3, "int, ...", "Sample command #3" )
PF_CONSOLE_BASE_CMD ( FadeIn , " float len, bool hold " , " Sample command #1 " )
PF_CONSOLE_BASE_CMD ( FadeIn , " float len, bool hold " , " Sample command #1 " )
{
{
plTransitionMsg * msg = TRACKED_NEW plTransitionMsg ( plTransitionMsg : : kFadeIn , ( float ) params [ 0 ] , ( bool ) params [ 1 ] ) ;
plTransitionMsg * msg = new plTransitionMsg ( plTransitionMsg : : kFadeIn , ( float ) params [ 0 ] , ( bool ) params [ 1 ] ) ;
plgDispatch : : MsgSend ( msg ) ;
plgDispatch : : MsgSend ( msg ) ;
}
}
PF_CONSOLE_BASE_CMD ( FadeOut , " float len, bool hold " , " Sample command #1 " )
PF_CONSOLE_BASE_CMD ( FadeOut , " float len, bool hold " , " Sample command #1 " )
{
{
plTransitionMsg * msg = TRACKED_NEW plTransitionMsg ( plTransitionMsg : : kFadeOut , ( float ) params [ 0 ] , ( bool ) params [ 1 ] ) ;
plTransitionMsg * msg = new plTransitionMsg ( plTransitionMsg : : kFadeOut , ( float ) params [ 0 ] , ( bool ) params [ 1 ] ) ;
plgDispatch : : MsgSend ( msg ) ;
plgDispatch : : MsgSend ( msg ) ;
}
}
@ -896,13 +896,13 @@ PF_CONSOLE_CMD( Console, ClearAllVars, "", "Wipes the global console variable co
PF_CONSOLE_CMD ( Console , ExecuteFile , " string filename " , " Runs the given file as if it were an .ini or .fni file " )
PF_CONSOLE_CMD ( Console , ExecuteFile , " string filename " , " Runs the given file as if it were an .ini or .fni file " )
{
{
plConsoleMsg * cMsg = TRACKED_NEW plConsoleMsg ( plConsoleMsg : : kExecuteFile , params [ 0 ] ) ;
plConsoleMsg * cMsg = new plConsoleMsg ( plConsoleMsg : : kExecuteFile , params [ 0 ] ) ;
cMsg - > Send ( ) ;
cMsg - > Send ( ) ;
}
}
PF_CONSOLE_CMD ( Console , ExecuteFileDelayed , " string filename, float timeInSecs " , " Runs the given file as if it were an .ini or .fni file, but at some given point in the future " )
PF_CONSOLE_CMD ( Console , ExecuteFileDelayed , " string filename, float timeInSecs " , " Runs the given file as if it were an .ini or .fni file, but at some given point in the future " )
{
{
plConsoleMsg * cMsg = TRACKED_NEW plConsoleMsg ( plConsoleMsg : : kExecuteFile , params [ 0 ] ) ;
plConsoleMsg * cMsg = new plConsoleMsg ( plConsoleMsg : : kExecuteFile , params [ 0 ] ) ;
cMsg - > SetTimeStamp ( hsTimer : : GetSysSeconds ( ) + ( float ) params [ 1 ] ) ;
cMsg - > SetTimeStamp ( hsTimer : : GetSysSeconds ( ) + ( float ) params [ 1 ] ) ;
cMsg - > Send ( ) ;
cMsg - > Send ( ) ;
}
}
@ -1746,10 +1746,10 @@ PF_CONSOLE_CMD( Graphics_Renderer, GenerateReflectMaps, "string baseObject, stri
hsAssert ( pfConsole : : GetPipeline ( ) ! = nil , " Cannot use this command before pipeline initialization " ) ;
hsAssert ( pfConsole : : GetPipeline ( ) ! = nil , " Cannot use this command before pipeline initialization " ) ;
// First, create the renderTarget for the renderRequests
// First, create the renderTarget for the renderRequests
plRenderTarget * target = TRACKED_NEW plRenderTarget ( plRenderTarget : : kIsProjected | plRenderTarget : : kIsTexture ,
plRenderTarget * target = new plRenderTarget ( plRenderTarget : : kIsProjected | plRenderTarget : : kIsTexture ,
params [ 2 ] , params [ 2 ] , 32 , 24 , 0 ) ;
params [ 2 ] , params [ 2 ] , 32 , 24 , 0 ) ;
// plMipmap *newMip = TRACKED_NEW plMipmap( size, size, plMipmap::kARGB32Config, 1 );
// plMipmap *newMip = new plMipmap( size, size, plMipmap::kARGB32Config, 1 );
c . Set ( params [ 0 ] , params [ 1 ] , params [ 2 ] , 1.0f ) ;
c . Set ( params [ 0 ] , params [ 1 ] , params [ 2 ] , 1.0f ) ;
@ -1873,7 +1873,7 @@ PF_CONSOLE_CMD( Graphics_Show, Bounds, "", "Toggle object bounds display")
PF_CONSOLE_CMD ( Graphics_Show , Sound , " " , " Toggle sound fields visible " )
PF_CONSOLE_CMD ( Graphics_Show , Sound , " " , " Toggle sound fields visible " )
{
{
static hsBool on = false ;
static hsBool on = false ;
plProxyDrawMsg * msg = TRACKED_NEW plProxyDrawMsg ( plProxyDrawMsg : : kAudible | ( ( on = ! on ) ? plProxyDrawMsg : : kCreate : plProxyDrawMsg : : kDestroy ) ) ;
plProxyDrawMsg * msg = new plProxyDrawMsg ( plProxyDrawMsg : : kAudible | ( ( on = ! on ) ? plProxyDrawMsg : : kCreate : plProxyDrawMsg : : kDestroy ) ) ;
plgDispatch : : MsgSend ( msg ) ;
plgDispatch : : MsgSend ( msg ) ;
if ( on )
if ( on )
pfConsole : : GetPipeline ( ) - > SetDrawableTypeMask ( pfConsole : : GetPipeline ( ) - > GetDrawableTypeMask ( ) | plDrawableSpans : : kAudibleProxy ) ;
pfConsole : : GetPipeline ( ) - > SetDrawableTypeMask ( pfConsole : : GetPipeline ( ) - > GetDrawableTypeMask ( ) | plDrawableSpans : : kAudibleProxy ) ;
@ -1910,7 +1910,7 @@ PF_CONSOLE_CMD( Graphics_Show, SingleSound,
}
}
plKey aiKey = ai - > GetKey ( ) ;
plKey aiKey = ai - > GetKey ( ) ;
plProxyDrawMsg * msg = TRACKED_NEW plProxyDrawMsg ( plProxyDrawMsg : : kAudible | plProxyDrawMsg : : kToggle ) ;
plProxyDrawMsg * msg = new plProxyDrawMsg ( plProxyDrawMsg : : kAudible | plProxyDrawMsg : : kToggle ) ;
msg - > SetBCastFlag ( plMessage : : kBCastByExactType , false ) ;
msg - > SetBCastFlag ( plMessage : : kBCastByExactType , false ) ;
msg - > AddReceiver ( aiKey ) ;
msg - > AddReceiver ( aiKey ) ;
plgDispatch : : MsgSend ( msg ) ;
plgDispatch : : MsgSend ( msg ) ;
@ -1928,7 +1928,7 @@ PF_CONSOLE_CMD( Graphics_Show, SingleSound,
PF_CONSOLE_CMD ( Graphics_Show , SoundOnly , " " , " Toggle only sound fields visible " )
PF_CONSOLE_CMD ( Graphics_Show , SoundOnly , " " , " Toggle only sound fields visible " )
{
{
static hsBool on = false ;
static hsBool on = false ;
plProxyDrawMsg * msg = TRACKED_NEW plProxyDrawMsg ( plProxyDrawMsg : : kAudible | ( ( on = ! on ) ? plProxyDrawMsg : : kCreate : plProxyDrawMsg : : kDestroy ) ) ;
plProxyDrawMsg * msg = new plProxyDrawMsg ( plProxyDrawMsg : : kAudible | ( ( on = ! on ) ? plProxyDrawMsg : : kCreate : plProxyDrawMsg : : kDestroy ) ) ;
plgDispatch : : MsgSend ( msg ) ;
plgDispatch : : MsgSend ( msg ) ;
static uint32_t oldMask = plDrawableSpans : : kNormal ;
static uint32_t oldMask = plDrawableSpans : : kNormal ;
if ( on )
if ( on )
@ -1982,7 +1982,7 @@ PF_CONSOLE_CMD( Graphics_Show, OccSnapOnly, "", "Take snapshot of current occlus
PF_CONSOLE_CMD ( Graphics_Show , Occluders , " " , " Toggle occluder geometry visible " )
PF_CONSOLE_CMD ( Graphics_Show , Occluders , " " , " Toggle occluder geometry visible " )
{
{
static hsBool on = false ;
static hsBool on = false ;
plProxyDrawMsg * msg = TRACKED_NEW plProxyDrawMsg ( plProxyDrawMsg : : kOccluder | ( ( on = ! on ) ? plProxyDrawMsg : : kCreate : plProxyDrawMsg : : kDestroy ) ) ;
plProxyDrawMsg * msg = new plProxyDrawMsg ( plProxyDrawMsg : : kOccluder | ( ( on = ! on ) ? plProxyDrawMsg : : kCreate : plProxyDrawMsg : : kDestroy ) ) ;
plgDispatch : : MsgSend ( msg ) ;
plgDispatch : : MsgSend ( msg ) ;
if ( on )
if ( on )
@ -1998,7 +1998,7 @@ PF_CONSOLE_CMD( Graphics_Show, Occluders, "", "Toggle occluder geometry visible"
PF_CONSOLE_CMD ( Graphics_Show , OccludersOnly , " " , " Toggle only occluder geometry visible " )
PF_CONSOLE_CMD ( Graphics_Show , OccludersOnly , " " , " Toggle only occluder geometry visible " )
{
{
static hsBool on = false ;
static hsBool on = false ;
plProxyDrawMsg * msg = TRACKED_NEW plProxyDrawMsg ( plProxyDrawMsg : : kOccluder | ( ( on = ! on ) ? plProxyDrawMsg : : kCreate : plProxyDrawMsg : : kDestroy ) ) ;
plProxyDrawMsg * msg = new plProxyDrawMsg ( plProxyDrawMsg : : kOccluder | ( ( on = ! on ) ? plProxyDrawMsg : : kCreate : plProxyDrawMsg : : kDestroy ) ) ;
plgDispatch : : MsgSend ( msg ) ;
plgDispatch : : MsgSend ( msg ) ;
static uint32_t oldMask = plDrawableSpans : : kNormal ;
static uint32_t oldMask = plDrawableSpans : : kNormal ;
if ( on )
if ( on )
@ -2018,7 +2018,7 @@ PF_CONSOLE_CMD( Graphics_Show, OccludersOnly, "", "Toggle only occluder geometry
PF_CONSOLE_CMD ( Graphics_Show , Physicals , " " , " Toggle Physical geometry visible " )
PF_CONSOLE_CMD ( Graphics_Show , Physicals , " " , " Toggle Physical geometry visible " )
{
{
static hsBool on = false ;
static hsBool on = false ;
plProxyDrawMsg * msg = TRACKED_NEW plProxyDrawMsg ( plProxyDrawMsg : : kPhysical | ( ( on = ! on ) ? plProxyDrawMsg : : kCreate : plProxyDrawMsg : : kDestroy ) ) ;
plProxyDrawMsg * msg = new plProxyDrawMsg ( plProxyDrawMsg : : kPhysical | ( ( on = ! on ) ? plProxyDrawMsg : : kCreate : plProxyDrawMsg : : kDestroy ) ) ;
plgDispatch : : MsgSend ( msg ) ;
plgDispatch : : MsgSend ( msg ) ;
if ( on )
if ( on )
pfConsole : : GetPipeline ( ) - > SetDrawableTypeMask ( pfConsole : : GetPipeline ( ) - > GetDrawableTypeMask ( ) | plDrawableSpans : : kPhysicalProxy ) ;
pfConsole : : GetPipeline ( ) - > SetDrawableTypeMask ( pfConsole : : GetPipeline ( ) - > GetDrawableTypeMask ( ) | plDrawableSpans : : kPhysicalProxy ) ;
@ -2033,7 +2033,7 @@ PF_CONSOLE_CMD( Graphics_Show, Physicals, "", "Toggle Physical geometry visible"
PF_CONSOLE_CMD ( Graphics_Show , PhysicalsOnly , " " , " Toggle only Physical geometry visible " )
PF_CONSOLE_CMD ( Graphics_Show , PhysicalsOnly , " " , " Toggle only Physical geometry visible " )
{
{
static hsBool on = false ;
static hsBool on = false ;
plProxyDrawMsg * msg = TRACKED_NEW plProxyDrawMsg ( plProxyDrawMsg : : kPhysical | ( ( on = ! on ) ? plProxyDrawMsg : : kCreate : plProxyDrawMsg : : kDestroy ) ) ;
plProxyDrawMsg * msg = new plProxyDrawMsg ( plProxyDrawMsg : : kPhysical | ( ( on = ! on ) ? plProxyDrawMsg : : kCreate : plProxyDrawMsg : : kDestroy ) ) ;
plgDispatch : : MsgSend ( msg ) ;
plgDispatch : : MsgSend ( msg ) ;
static uint32_t oldMask = plDrawableSpans : : kNormal ;
static uint32_t oldMask = plDrawableSpans : : kNormal ;
if ( on )
if ( on )
@ -2084,7 +2084,7 @@ PF_CONSOLE_CMD( Graphics_Show, NormalOnly, "", "Toggle only normal geometry visi
PF_CONSOLE_CMD ( Graphics_Show , Lights , " " , " Toggle visible proxies for lights " )
PF_CONSOLE_CMD ( Graphics_Show , Lights , " " , " Toggle visible proxies for lights " )
{
{
static hsBool on = false ;
static hsBool on = false ;
plProxyDrawMsg * msg = TRACKED_NEW plProxyDrawMsg ( plProxyDrawMsg : : kLight | ( ( on = ! on ) ? plProxyDrawMsg : : kCreate : plProxyDrawMsg : : kDestroy ) ) ;
plProxyDrawMsg * msg = new plProxyDrawMsg ( plProxyDrawMsg : : kLight | ( ( on = ! on ) ? plProxyDrawMsg : : kCreate : plProxyDrawMsg : : kDestroy ) ) ;
plgDispatch : : MsgSend ( msg ) ;
plgDispatch : : MsgSend ( msg ) ;
if ( on )
if ( on )
pfConsole : : GetPipeline ( ) - > SetDrawableTypeMask ( pfConsole : : GetPipeline ( ) - > GetDrawableTypeMask ( ) | plDrawableSpans : : kLightProxy ) ;
pfConsole : : GetPipeline ( ) - > SetDrawableTypeMask ( pfConsole : : GetPipeline ( ) - > GetDrawableTypeMask ( ) | plDrawableSpans : : kLightProxy ) ;
@ -2099,7 +2099,7 @@ PF_CONSOLE_CMD( Graphics_Show, Lights, "", "Toggle visible proxies for lights")
PF_CONSOLE_CMD ( Graphics_Show , LightsOnly , " " , " Toggle visible proxies for lights and everything else invisible " )
PF_CONSOLE_CMD ( Graphics_Show , LightsOnly , " " , " Toggle visible proxies for lights and everything else invisible " )
{
{
static hsBool on = false ;
static hsBool on = false ;
plProxyDrawMsg * msg = TRACKED_NEW plProxyDrawMsg ( plProxyDrawMsg : : kLight | ( ( on = ! on ) ? plProxyDrawMsg : : kCreate : plProxyDrawMsg : : kDestroy ) ) ;
plProxyDrawMsg * msg = new plProxyDrawMsg ( plProxyDrawMsg : : kLight | ( ( on = ! on ) ? plProxyDrawMsg : : kCreate : plProxyDrawMsg : : kDestroy ) ) ;
plgDispatch : : MsgSend ( msg ) ;
plgDispatch : : MsgSend ( msg ) ;
static uint32_t oldMask = plDrawableSpans : : kNormal ;
static uint32_t oldMask = plDrawableSpans : : kNormal ;
if ( on )
if ( on )
@ -2119,7 +2119,7 @@ PF_CONSOLE_CMD( Graphics_Show, LightsOnly, "", "Toggle visible proxies for light
PF_CONSOLE_CMD ( Graphics_Show , Clicks , " " , " Toggle visible proxies for clicks " )
PF_CONSOLE_CMD ( Graphics_Show , Clicks , " " , " Toggle visible proxies for clicks " )
{
{
static hsBool on = false ;
static hsBool on = false ;
plProxyDrawMsg * msg = TRACKED_NEW plProxyDrawMsg ( plProxyDrawMsg : : kCamera | ( ( on = ! on ) ? plProxyDrawMsg : : kCreate : plProxyDrawMsg : : kDestroy ) ) ;
plProxyDrawMsg * msg = new plProxyDrawMsg ( plProxyDrawMsg : : kCamera | ( ( on = ! on ) ? plProxyDrawMsg : : kCreate : plProxyDrawMsg : : kDestroy ) ) ;
plgDispatch : : MsgSend ( msg ) ;
plgDispatch : : MsgSend ( msg ) ;
if ( on )
if ( on )
pfConsole : : GetPipeline ( ) - > SetDrawableTypeMask ( pfConsole : : GetPipeline ( ) - > GetDrawableTypeMask ( ) | plDrawableSpans : : kCameraProxy ) ;
pfConsole : : GetPipeline ( ) - > SetDrawableTypeMask ( pfConsole : : GetPipeline ( ) - > GetDrawableTypeMask ( ) | plDrawableSpans : : kCameraProxy ) ;
@ -2135,7 +2135,7 @@ PF_CONSOLE_CMD( Graphics_Show, Clicks, "", "Toggle visible proxies for clicks")
PF_CONSOLE_CMD ( Graphics_Show , ClickOnly , " " , " Toggle visible proxies for click points " )
PF_CONSOLE_CMD ( Graphics_Show , ClickOnly , " " , " Toggle visible proxies for click points " )
{
{
static hsBool on = false ;
static hsBool on = false ;
plProxyDrawMsg * msg = TRACKED_NEW plProxyDrawMsg ( plProxyDrawMsg : : kCamera | ( ( on = ! on ) ? plProxyDrawMsg : : kCreate : plProxyDrawMsg : : kDestroy ) ) ;
plProxyDrawMsg * msg = new plProxyDrawMsg ( plProxyDrawMsg : : kCamera | ( ( on = ! on ) ? plProxyDrawMsg : : kCreate : plProxyDrawMsg : : kDestroy ) ) ;
plgDispatch : : MsgSend ( msg ) ;
plgDispatch : : MsgSend ( msg ) ;
static uint32_t oldMask = plDrawableSpans : : kNormal ;
static uint32_t oldMask = plDrawableSpans : : kNormal ;
if ( on )
if ( on )
@ -2252,7 +2252,7 @@ PF_CONSOLE_CMD( App,
return ;
return ;
}
}
plAnimCmdMsg * cmd = TRACKED_NEW plAnimCmdMsg ;
plAnimCmdMsg * cmd = new plAnimCmdMsg ;
cmd - > SetSender ( plClient : : GetInstance ( ) - > GetKey ( ) ) ;
cmd - > SetSender ( plClient : : GetInstance ( ) - > GetKey ( ) ) ;
cmd - > SetCmd ( plAnimCmdMsg : : kAddCallbacks ) ;
cmd - > SetCmd ( plAnimCmdMsg : : kAddCallbacks ) ;
# if 1
# if 1
@ -2288,7 +2288,7 @@ PF_CONSOLE_CMD( App,
}
}
reps - - ;
reps - - ;
plEventCallbackMsg * callback = TRACKED_NEW plEventCallbackMsg ( plClient : : GetInstance ( ) - > GetKey ( ) , event , 0 , secs , reps ) ;
plEventCallbackMsg * callback = new plEventCallbackMsg ( plClient : : GetInstance ( ) - > GetKey ( ) , event , 0 , secs , reps ) ;
cmd - > AddCallback ( callback ) ;
cmd - > AddCallback ( callback ) ;
hsRefCnt_SafeUnRef ( callback ) ;
hsRefCnt_SafeUnRef ( callback ) ;
plgDispatch : : MsgSend ( cmd ) ;
plgDispatch : : MsgSend ( cmd ) ;
@ -2312,7 +2312,7 @@ PF_CONSOLE_CMD( App,
PrintString ( str ) ;
PrintString ( str ) ;
plSoundMsg * cmd = TRACKED_NEW plSoundMsg ;
plSoundMsg * cmd = new plSoundMsg ;
cmd - > SetSender ( plClient : : GetInstance ( ) - > GetKey ( ) ) ;
cmd - > SetSender ( plClient : : GetInstance ( ) - > GetKey ( ) ) ;
cmd - > SetCmd ( plSoundMsg : : kAddCallbacks ) ;
cmd - > SetCmd ( plSoundMsg : : kAddCallbacks ) ;
cmd - > AddReceiver ( key ) ;
cmd - > AddReceiver ( key ) ;
@ -2343,7 +2343,7 @@ PF_CONSOLE_CMD( App,
}
}
reps - - ;
reps - - ;
plEventCallbackMsg * callback = TRACKED_NEW plEventCallbackMsg ( plClient : : GetInstance ( ) - > GetKey ( ) , event , 0 , secs , reps ) ;
plEventCallbackMsg * callback = new plEventCallbackMsg ( plClient : : GetInstance ( ) - > GetKey ( ) , event , 0 , secs , reps ) ;
cmd - > AddCallback ( callback ) ;
cmd - > AddCallback ( callback ) ;
hsRefCnt_SafeUnRef ( callback ) ;
hsRefCnt_SafeUnRef ( callback ) ;
plgDispatch : : MsgSend ( cmd ) ;
plgDispatch : : MsgSend ( cmd ) ;
@ -2385,7 +2385,7 @@ PF_CONSOLE_CMD( App,
}
}
strcpy ( str , name ) ;
strcpy ( str , name ) ;
plAnimCmdMsg * cmd = TRACKED_NEW plAnimCmdMsg ( nil , obj - > GetModifier ( i ) - > GetKey ( ) , nil ) ;
plAnimCmdMsg * cmd = new plAnimCmdMsg ( nil , obj - > GetModifier ( i ) - > GetKey ( ) , nil ) ;
if ( numParams > 1 )
if ( numParams > 1 )
{
{
@ -3001,7 +3001,7 @@ PF_CONSOLE_CMD( Camera, SwitchTo, "string cameraName", "Switch to the named came
if ( key )
if ( key )
{
{
plCameraMsg * pMsg = TRACKED_NEW plCameraMsg ;
plCameraMsg * pMsg = new plCameraMsg ;
pMsg - > SetCmd ( plCameraMsg : : kResponderTrigger ) ;
pMsg - > SetCmd ( plCameraMsg : : kResponderTrigger ) ;
pMsg - > SetCmd ( plCameraMsg : : kRegionPushCamera ) ;
pMsg - > SetCmd ( plCameraMsg : : kRegionPushCamera ) ;
pMsg - > SetNewCam ( key ) ;
pMsg - > SetNewCam ( key ) ;
@ -3160,7 +3160,7 @@ PF_CONSOLE_CMD(Logic, EnableDetector, "string detectorComp, bool enable", "Enabl
plLogicModBase * mod = FindLogicMod ( ( const char * ) params [ 0 ] ) ;
plLogicModBase * mod = FindLogicMod ( ( const char * ) params [ 0 ] ) ;
if ( mod )
if ( mod )
{
{
plEnableMsg * enableMsg = TRACKED_NEW plEnableMsg ;
plEnableMsg * enableMsg = new plEnableMsg ;
enableMsg - > SetCmd ( params [ 1 ] ? plEnableMsg : : kEnable : plEnableMsg : : kDisable ) ;
enableMsg - > SetCmd ( params [ 1 ] ? plEnableMsg : : kEnable : plEnableMsg : : kDisable ) ;
enableMsg - > SetCmd ( plEnableMsg : : kAll ) ;
enableMsg - > SetCmd ( plEnableMsg : : kAll ) ;
enableMsg - > Send ( mod - > GetKey ( ) ) ;
enableMsg - > Send ( mod - > GetKey ( ) ) ;
@ -3169,7 +3169,7 @@ PF_CONSOLE_CMD(Logic, EnableDetector, "string detectorComp, bool enable", "Enabl
static void ResponderSendTrigger ( plKey responderKey , int responderState , bool fastForward = false )
static void ResponderSendTrigger ( plKey responderKey , int responderState , bool fastForward = false )
{
{
plNotifyMsg * msg = TRACKED_NEW plNotifyMsg ;
plNotifyMsg * msg = new plNotifyMsg ;
if ( fastForward )
if ( fastForward )
{
{
@ -3579,7 +3579,7 @@ PF_CONSOLE_CMD( Audio, SetVolume,
const plAudioInterface * ai = obj - > GetAudioInterface ( ) ;
const plAudioInterface * ai = obj - > GetAudioInterface ( ) ;
plKey aiKey = ai - > GetKey ( ) ;
plKey aiKey = ai - > GetKey ( ) ;
plSoundMsg * cmd = TRACKED_NEW plSoundMsg ;
plSoundMsg * cmd = new plSoundMsg ;
cmd - > SetSender ( plClient : : GetInstance ( ) - > GetKey ( ) ) ;
cmd - > SetSender ( plClient : : GetInstance ( ) - > GetKey ( ) ) ;
cmd - > SetCmd ( plSoundMsg : : kSetVolume ) ;
cmd - > SetCmd ( plSoundMsg : : kSetVolume ) ;
cmd - > fVolume = params [ 1 ] ;
cmd - > fVolume = params [ 1 ] ;
@ -3621,10 +3621,10 @@ PF_CONSOLE_CMD( Audio, IsolateSound,
return ;
return ;
}
}
asMsg = TRACKED_NEW plAudioSysMsg ( plAudioSysMsg : : kMuteAll ) ;
asMsg = new plAudioSysMsg ( plAudioSysMsg : : kMuteAll ) ;
plgDispatch : : MsgSend ( asMsg ) ;
plgDispatch : : MsgSend ( asMsg ) ;
asMsg = TRACKED_NEW plAudioSysMsg ( plAudioSysMsg : : kUnmuteAll ) ;
asMsg = new plAudioSysMsg ( plAudioSysMsg : : kUnmuteAll ) ;
asMsg - > AddReceiver ( ai - > GetKey ( ) ) ;
asMsg - > AddReceiver ( ai - > GetKey ( ) ) ;
asMsg - > SetBCastFlag ( plMessage : : kBCastByExactType , false ) ;
asMsg - > SetBCastFlag ( plMessage : : kBCastByExactType , false ) ;
plgDispatch : : MsgSend ( asMsg ) ;
plgDispatch : : MsgSend ( asMsg ) ;
@ -3702,19 +3702,19 @@ PF_CONSOLE_CMD( Listener, ShowDebugInfo, "bool show", "Shows or hides debugging
PF_CONSOLE_CMD ( Listener , UseCameraOrientation , " " , " Use the camera's orientation to orient the listener " )
PF_CONSOLE_CMD ( Listener , UseCameraOrientation , " " , " Use the camera's orientation to orient the listener " )
{
{
plSetListenerMsg * set = TRACKED_NEW plSetListenerMsg ( plSetListenerMsg : : kVCam | plSetListenerMsg : : kFacing , nil , true ) ;
plSetListenerMsg * set = new plSetListenerMsg ( plSetListenerMsg : : kVCam | plSetListenerMsg : : kFacing , nil , true ) ;
set - > Send ( ) ;
set - > Send ( ) ;
}
}
PF_CONSOLE_CMD ( Listener , UseCameraPosition , " " , " Use the canera's position to position the listener " )
PF_CONSOLE_CMD ( Listener , UseCameraPosition , " " , " Use the canera's position to position the listener " )
{
{
plSetListenerMsg * set = TRACKED_NEW plSetListenerMsg ( plSetListenerMsg : : kVCam | plSetListenerMsg : : kPosition , nil , true ) ;
plSetListenerMsg * set = new plSetListenerMsg ( plSetListenerMsg : : kVCam | plSetListenerMsg : : kPosition , nil , true ) ;
set - > Send ( ) ;
set - > Send ( ) ;
}
}
PF_CONSOLE_CMD ( Listener , UseCameraVelocity , " " , " Use the camera's velocity to set the listener velocity " )
PF_CONSOLE_CMD ( Listener , UseCameraVelocity , " " , " Use the camera's velocity to set the listener velocity " )
{
{
plSetListenerMsg * set = TRACKED_NEW plSetListenerMsg ( plSetListenerMsg : : kVCam | plSetListenerMsg : : kVelocity , nil , true ) ;
plSetListenerMsg * set = new plSetListenerMsg ( plSetListenerMsg : : kVCam | plSetListenerMsg : : kVelocity , nil , true ) ;
set - > Send ( ) ;
set - > Send ( ) ;
}
}
@ -3723,7 +3723,7 @@ PF_CONSOLE_CMD( Listener, UsePlayerOrientation, "", "Use the player's orientatio
plKey pKey = plNetClientMgr : : GetInstance ( ) - > GetLocalPlayerKey ( ) ;
plKey pKey = plNetClientMgr : : GetInstance ( ) - > GetLocalPlayerKey ( ) ;
if ( pKey )
if ( pKey )
{
{
plSetListenerMsg * set = TRACKED_NEW plSetListenerMsg ( plSetListenerMsg : : kFacing , pKey , true ) ;
plSetListenerMsg * set = new plSetListenerMsg ( plSetListenerMsg : : kFacing , pKey , true ) ;
set - > Send ( ) ;
set - > Send ( ) ;
}
}
}
}
@ -3732,7 +3732,7 @@ PF_CONSOLE_CMD( Listener, UsePlayerPosition, "", "Use the player's position to p
plKey pKey = plNetClientMgr : : GetInstance ( ) - > GetLocalPlayerKey ( ) ;
plKey pKey = plNetClientMgr : : GetInstance ( ) - > GetLocalPlayerKey ( ) ;
if ( pKey )
if ( pKey )
{
{
plSetListenerMsg * set = TRACKED_NEW plSetListenerMsg ( plSetListenerMsg : : kPosition , pKey , true ) ;
plSetListenerMsg * set = new plSetListenerMsg ( plSetListenerMsg : : kPosition , pKey , true ) ;
set - > Send ( ) ;
set - > Send ( ) ;
}
}
}
}
@ -3742,7 +3742,7 @@ PF_CONSOLE_CMD( Listener, UsePlayerVelocity, "", "Use the player's velocity to s
plKey pKey = plNetClientMgr : : GetInstance ( ) - > GetLocalPlayerKey ( ) ;
plKey pKey = plNetClientMgr : : GetInstance ( ) - > GetLocalPlayerKey ( ) ;
if ( pKey )
if ( pKey )
{
{
plSetListenerMsg * set = TRACKED_NEW plSetListenerMsg ( plSetListenerMsg : : kVelocity , pKey , true ) ;
plSetListenerMsg * set = new plSetListenerMsg ( plSetListenerMsg : : kVelocity , pKey , true ) ;
set - > Send ( ) ;
set - > Send ( ) ;
}
}
}
}
@ -3775,13 +3775,13 @@ PF_CONSOLE_CMD( Listener, XMode, "bool b", "Sets velocity and position to avatar
plStatusLog : : AddLineS ( " audio.log " , " XMode on " ) ;
plStatusLog : : AddLineS ( " audio.log " , " XMode on " ) ;
plSetListenerMsg * set = TRACKED_NEW plSetListenerMsg ( plSetListenerMsg : : kVCam | plSetListenerMsg : : kFacing , nil , true ) ;
plSetListenerMsg * set = new plSetListenerMsg ( plSetListenerMsg : : kVCam | plSetListenerMsg : : kFacing , nil , true ) ;
set - > Send ( ) ;
set - > Send ( ) ;
if ( pKey )
if ( pKey )
{
{
set = TRACKED_NEW plSetListenerMsg ( plSetListenerMsg : : kVelocity , pKey , true ) ;
set = new plSetListenerMsg ( plSetListenerMsg : : kVelocity , pKey , true ) ;
set - > Send ( ) ;
set - > Send ( ) ;
set = TRACKED_NEW plSetListenerMsg ( plSetListenerMsg : : kPosition , pKey , true ) ;
set = new plSetListenerMsg ( plSetListenerMsg : : kPosition , pKey , true ) ;
set - > Send ( ) ;
set - > Send ( ) ;
}
}
}
}
@ -3789,32 +3789,32 @@ PF_CONSOLE_CMD( Listener, XMode, "bool b", "Sets velocity and position to avatar
{
{
if ( oldPosType = = plListener : : kCamera )
if ( oldPosType = = plListener : : kCamera )
{
{
plSetListenerMsg * set = TRACKED_NEW plSetListenerMsg ( plSetListenerMsg : : kVCam | plSetListenerMsg : : kPosition , nil , true ) ;
plSetListenerMsg * set = new plSetListenerMsg ( plSetListenerMsg : : kVCam | plSetListenerMsg : : kPosition , nil , true ) ;
set - > Send ( ) ;
set - > Send ( ) ;
}
}
else
else
{
{
set = TRACKED_NEW plSetListenerMsg ( plSetListenerMsg : : kPosition , pKey , true ) ;
set = new plSetListenerMsg ( plSetListenerMsg : : kPosition , pKey , true ) ;
set - > Send ( ) ;
set - > Send ( ) ;
}
}
if ( oldFacingType = = plListener : : kCamera )
if ( oldFacingType = = plListener : : kCamera )
{
{
set = TRACKED_NEW plSetListenerMsg ( plSetListenerMsg : : kVCam | plSetListenerMsg : : kFacing , nil , true ) ;
set = new plSetListenerMsg ( plSetListenerMsg : : kVCam | plSetListenerMsg : : kFacing , nil , true ) ;
set - > Send ( ) ;
set - > Send ( ) ;
}
}
else
else
{
{
set = TRACKED_NEW plSetListenerMsg ( plSetListenerMsg : : kFacing , pKey , true ) ;
set = new plSetListenerMsg ( plSetListenerMsg : : kFacing , pKey , true ) ;
set - > Send ( ) ;
set - > Send ( ) ;
}
}
if ( oldVelType = = plListener : : kCamera )
if ( oldVelType = = plListener : : kCamera )
{
{
set = TRACKED_NEW plSetListenerMsg ( plSetListenerMsg : : kVCam | plSetListenerMsg : : kVelocity , nil , true ) ;
set = new plSetListenerMsg ( plSetListenerMsg : : kVCam | plSetListenerMsg : : kVelocity , nil , true ) ;
set - > Send ( ) ;
set - > Send ( ) ;
}
}
else
else
{
{
set = TRACKED_NEW plSetListenerMsg ( plSetListenerMsg : : kVelocity , pKey , true ) ;
set = new plSetListenerMsg ( plSetListenerMsg : : kVelocity , pKey , true ) ;
set - > Send ( ) ;
set - > Send ( ) ;
}
}
plStatusLog : : AddLineS ( " audio.log " , " %s, %d, %d, %d " , " XMode off " , oldPosType , oldFacingType , oldVelType ) ;
plStatusLog : : AddLineS ( " audio.log " , " %s, %d, %d, %d " , " XMode off " , oldPosType , oldFacingType , oldVelType ) ;
@ -3841,7 +3841,7 @@ PF_CONSOLE_CMD( DInput, UseDInput, "bool on", "Turns off DirectInput")
PF_CONSOLE_CMD ( DInput , Config , " " , " Launch DInput configuration screen " )
PF_CONSOLE_CMD ( DInput , Config , " " , " Launch DInput configuration screen " )
{
{
plgAudioSys : : Activate ( false ) ;
plgAudioSys : : Activate ( false ) ;
plInputEventMsg * pMsg = TRACKED_NEW plInputEventMsg ;
plInputEventMsg * pMsg = new plInputEventMsg ;
pMsg - > fEvent = plInputEventMsg : : kConfigure ;
pMsg - > fEvent = plInputEventMsg : : kConfigure ;
pMsg - > AddReceiver ( plInputManager : : GetInstance ( ) - > GetKey ( ) ) ;
pMsg - > AddReceiver ( plInputManager : : GetInstance ( ) - > GetKey ( ) ) ;
pMsg - > SetBCastFlag ( plMessage : : kBCastByType , false ) ;
pMsg - > SetBCastFlag ( plMessage : : kBCastByType , false ) ;
@ -3972,7 +3972,7 @@ PF_CONSOLE_CMD( Nav, PageInNode, // Group name, Function name
" Pages in a scene node. " ) // Help string
" Pages in a scene node. " ) // Help string
{
{
plSynchEnabler ps ( false ) ; // disable dirty tracking while paging in
plSynchEnabler ps ( false ) ; // disable dirty tracking while paging in
plClientMsg * pMsg1 = TRACKED_NEW plClientMsg ( plClientMsg : : kLoadRoom ) ;
plClientMsg * pMsg1 = new plClientMsg ( plClientMsg : : kLoadRoom ) ;
pMsg1 - > AddReceiver ( plClient : : GetInstance ( ) - > GetKey ( ) ) ;
pMsg1 - > AddReceiver ( plClient : : GetInstance ( ) - > GetKey ( ) ) ;
pMsg1 - > AddRoomLoc ( plKeyFinder : : Instance ( ) . FindLocation ( nil , params [ 0 ] ) ) ;
pMsg1 - > AddRoomLoc ( plKeyFinder : : Instance ( ) . FindLocation ( nil , params [ 0 ] ) ) ;
plgDispatch : : MsgSend ( pMsg1 ) ;
plgDispatch : : MsgSend ( pMsg1 ) ;
@ -3990,7 +3990,7 @@ PF_CONSOLE_CMD( Nav, PageInNodeList, // Group name, Function name
pageInNodesStr + = " *.prx " ;
pageInNodesStr + = " *.prx " ;
hsFolderIterator pageInNodesIter ( pageInNodesStr . data ( ) , true ) ;
hsFolderIterator pageInNodesIter ( pageInNodesStr . data ( ) , true ) ;
plClientMsg * pMsg1 = TRACKED_NEW plClientMsg ( plClientMsg : : kLoadRoom ) ;
plClientMsg * pMsg1 = new plClientMsg ( plClientMsg : : kLoadRoom ) ;
while ( pageInNodesIter . NextFile ( ) )
while ( pageInNodesIter . NextFile ( ) )
{
{
char nodeName [ 255 ] ;
char nodeName [ 255 ] ;
@ -4009,7 +4009,7 @@ PF_CONSOLE_CMD( Nav, PageOutNode, // Group name, Function name
" pages out a scene node. " ) // Help string
" pages out a scene node. " ) // Help string
{
{
plSynchEnabler ps ( false ) ; // disable dirty tracking while paging out
plSynchEnabler ps ( false ) ; // disable dirty tracking while paging out
plClientMsg * pMsg1 = TRACKED_NEW plClientMsg ( plClientMsg : : kUnloadRoom ) ;
plClientMsg * pMsg1 = new plClientMsg ( plClientMsg : : kUnloadRoom ) ;
pMsg1 - > AddReceiver ( plClient : : GetInstance ( ) - > GetKey ( ) ) ;
pMsg1 - > AddReceiver ( plClient : : GetInstance ( ) - > GetKey ( ) ) ;
pMsg1 - > AddRoomLoc ( plKeyFinder : : Instance ( ) . FindLocation ( nil , params [ 0 ] ) ) ;
pMsg1 - > AddRoomLoc ( plKeyFinder : : Instance ( ) . FindLocation ( nil , params [ 0 ] ) ) ;
plgDispatch : : MsgSend ( pMsg1 ) ;
plgDispatch : : MsgSend ( pMsg1 ) ;
@ -4048,7 +4048,7 @@ PF_CONSOLE_CMD( Nav, MovePlayer, // Group name, Function name
if ( ! nodeKey )
if ( ! nodeKey )
return ;
return ;
plNodeChangeMsg * msg = TRACKED_NEW plNodeChangeMsg ( nil , playerKey , nodeKey ) ;
plNodeChangeMsg * msg = new plNodeChangeMsg ( nil , playerKey , nodeKey ) ;
plgDispatch : : MsgSend ( msg ) ;
plgDispatch : : MsgSend ( msg ) ;
sprintf ( str , " %s moved to %s " , ( char * ) params [ 0 ] , ( char * ) params [ 1 ] ) ;
sprintf ( str , " %s moved to %s " , ( char * ) params [ 0 ] , ( char * ) params [ 1 ] ) ;
PrintString ( str ) ;
PrintString ( str ) ;
@ -4083,11 +4083,11 @@ PF_CONSOLE_CMD( Movie,
" Start of movie with this filename " )
" Start of movie with this filename " )
{
{
char * filename = params [ 0 ] ;
char * filename = params [ 0 ] ;
plMovieMsg * mov = TRACKED_NEW plMovieMsg ( filename , plMovieMsg : : kStart ) ;
plMovieMsg * mov = new plMovieMsg ( filename , plMovieMsg : : kStart ) ;
//#define MF_TEST_MOVIECALLBACKS
//#define MF_TEST_MOVIECALLBACKS
# ifdef MF_TEST_MOVIECALLBACKS
# ifdef MF_TEST_MOVIECALLBACKS
plMovieMsg * cb = TRACKED_NEW plMovieMsg ( " avi/intro0.bik " , plMovieMsg : : kStart ) ;
plMovieMsg * cb = new plMovieMsg ( " avi/intro0.bik " , plMovieMsg : : kStart ) ;
mov - > AddCallback ( cb ) ;
mov - > AddCallback ( cb ) ;
mov - > SetCmd ( mov - > GetCmd ( ) | plMovieMsg : : kAddCallbacks ) ;
mov - > SetCmd ( mov - > GetCmd ( ) | plMovieMsg : : kAddCallbacks ) ;
# endif // MF_TEST_MOVIECALLBACKS
# endif // MF_TEST_MOVIECALLBACKS
@ -4103,7 +4103,7 @@ PF_CONSOLE_CMD( Movie,
" Stop movie with this filename " )
" Stop movie with this filename " )
{
{
char * filename = params [ 0 ] ;
char * filename = params [ 0 ] ;
plMovieMsg * mov = TRACKED_NEW plMovieMsg ( filename , plMovieMsg : : kStop ) ;
plMovieMsg * mov = new plMovieMsg ( filename , plMovieMsg : : kStop ) ;
mov - > Send ( ) ;
mov - > Send ( ) ;
PrintStringF ( PrintString , " %s now stopping " , filename ) ;
PrintStringF ( PrintString , " %s now stopping " , filename ) ;
@ -4115,7 +4115,7 @@ PF_CONSOLE_CMD( Movie,
" Pause movie with this filename " )
" Pause movie with this filename " )
{
{
char * filename = params [ 0 ] ;
char * filename = params [ 0 ] ;
plMovieMsg * mov = TRACKED_NEW plMovieMsg ( filename , plMovieMsg : : kPause ) ;
plMovieMsg * mov = new plMovieMsg ( filename , plMovieMsg : : kPause ) ;
mov - > Send ( ) ;
mov - > Send ( ) ;
PrintStringF ( PrintString , " %s now pausing " , filename ) ;
PrintStringF ( PrintString , " %s now pausing " , filename ) ;
@ -4127,7 +4127,7 @@ PF_CONSOLE_CMD( Movie,
" Resume movie with this filename " )
" Resume movie with this filename " )
{
{
char * filename = params [ 0 ] ;
char * filename = params [ 0 ] ;
plMovieMsg * mov = TRACKED_NEW plMovieMsg ( filename , plMovieMsg : : kResume ) ;
plMovieMsg * mov = new plMovieMsg ( filename , plMovieMsg : : kResume ) ;
mov - > Send ( ) ;
mov - > Send ( ) ;
PrintStringF ( PrintString , " %s now resuming " , filename ) ;
PrintStringF ( PrintString , " %s now resuming " , filename ) ;
@ -4139,7 +4139,7 @@ PF_CONSOLE_CMD( Movie,
" Move center of movie with this filename to x,y " )
" Move center of movie with this filename to x,y " )
{
{
char * filename = params [ 0 ] ;
char * filename = params [ 0 ] ;
plMovieMsg * mov = TRACKED_NEW plMovieMsg ( filename , plMovieMsg : : kMove ) ;
plMovieMsg * mov = new plMovieMsg ( filename , plMovieMsg : : kMove ) ;
float x = params [ 1 ] ;
float x = params [ 1 ] ;
float y = params [ 2 ] ;
float y = params [ 2 ] ;
mov - > SetCenter ( x , y ) ;
mov - > SetCenter ( x , y ) ;
@ -4154,7 +4154,7 @@ PF_CONSOLE_CMD( Movie,
" Scale movie with this filename by x,y " )
" Scale movie with this filename by x,y " )
{
{
char * filename = params [ 0 ] ;
char * filename = params [ 0 ] ;
plMovieMsg * mov = TRACKED_NEW plMovieMsg ( filename , plMovieMsg : : kScale ) ;
plMovieMsg * mov = new plMovieMsg ( filename , plMovieMsg : : kScale ) ;
float x = params [ 1 ] ;
float x = params [ 1 ] ;
float y = params [ 2 ] ;
float y = params [ 2 ] ;
mov - > SetScale ( x , y ) ;
mov - > SetScale ( x , y ) ;
@ -4169,7 +4169,7 @@ PF_CONSOLE_CMD( Movie,
" Set opacity of movie with this filename to a " )
" Set opacity of movie with this filename to a " )
{
{
char * filename = params [ 0 ] ;
char * filename = params [ 0 ] ;
plMovieMsg * mov = TRACKED_NEW plMovieMsg ( filename , plMovieMsg : : kOpacity ) ;
plMovieMsg * mov = new plMovieMsg ( filename , plMovieMsg : : kOpacity ) ;
float a = params [ 1 ] ;
float a = params [ 1 ] ;
mov - > SetOpacity ( a ) ;
mov - > SetOpacity ( a ) ;
mov - > Send ( ) ;
mov - > Send ( ) ;
@ -4183,7 +4183,7 @@ PF_CONSOLE_CMD( Movie,
" Color movie with this filename as r,g,b " )
" Color movie with this filename as r,g,b " )
{
{
char * filename = params [ 0 ] ;
char * filename = params [ 0 ] ;
plMovieMsg * mov = TRACKED_NEW plMovieMsg ( filename , plMovieMsg : : kColor ) ;
plMovieMsg * mov = new plMovieMsg ( filename , plMovieMsg : : kColor ) ;
float r = params [ 1 ] ;
float r = params [ 1 ] ;
float g = params [ 2 ] ;
float g = params [ 2 ] ;
float b = params [ 3 ] ;
float b = params [ 3 ] ;
@ -4199,7 +4199,7 @@ PF_CONSOLE_CMD( Movie,
" Set volume of movie with this filename to v " )
" Set volume of movie with this filename to v " )
{
{
char * filename = params [ 0 ] ;
char * filename = params [ 0 ] ;
plMovieMsg * mov = TRACKED_NEW plMovieMsg ( filename , plMovieMsg : : kVolume ) ;
plMovieMsg * mov = new plMovieMsg ( filename , plMovieMsg : : kVolume ) ;
float v = params [ 1 ] ;
float v = params [ 1 ] ;
mov - > SetVolume ( v ) ;
mov - > SetVolume ( v ) ;
mov - > Send ( ) ;
mov - > Send ( ) ;
@ -4213,7 +4213,7 @@ PF_CONSOLE_CMD( Movie,
" Fade in movie with this filename from r,g,b,a over secs seconds " )
" Fade in movie with this filename from r,g,b,a over secs seconds " )
{
{
char * filename = params [ 0 ] ;
char * filename = params [ 0 ] ;
plMovieMsg * mov = TRACKED_NEW plMovieMsg ( filename , plMovieMsg : : kFadeIn ) ;
plMovieMsg * mov = new plMovieMsg ( filename , plMovieMsg : : kFadeIn ) ;
float secs = params [ 1 ] ;
float secs = params [ 1 ] ;
float r = params [ 2 ] ;
float r = params [ 2 ] ;
float g = params [ 3 ] ;
float g = params [ 3 ] ;
@ -4232,7 +4232,7 @@ PF_CONSOLE_CMD( Movie,
" Fade out movie with this filename to r,g,b,a over secs seconds " )
" Fade out movie with this filename to r,g,b,a over secs seconds " )
{
{
char * filename = params [ 0 ] ;
char * filename = params [ 0 ] ;
plMovieMsg * mov = TRACKED_NEW plMovieMsg ( filename , plMovieMsg : : kFadeOut ) ;
plMovieMsg * mov = new plMovieMsg ( filename , plMovieMsg : : kFadeOut ) ;
float secs = params [ 1 ] ;
float secs = params [ 1 ] ;
float r = params [ 2 ] ;
float r = params [ 2 ] ;
float g = params [ 3 ] ;
float g = params [ 3 ] ;
@ -4635,13 +4635,13 @@ PF_CONSOLE_CMD( Access,
float fadeUp = params [ 1 ] ;
float fadeUp = params [ 1 ] ;
float fadeDown = params [ 2 ] ;
float fadeDown = params [ 2 ] ;
plFadeOpacityMod * mod = TRACKED_NEW plFadeOpacityMod ;
plFadeOpacityMod * mod = new plFadeOpacityMod ;
mod - > SetFadeUp ( fadeUp ) ;
mod - > SetFadeUp ( fadeUp ) ;
mod - > SetFadeDown ( fadeDown ) ;
mod - > SetFadeDown ( fadeDown ) ;
hsgResMgr : : ResMgr ( ) - > NewKey ( obj - > GetKey ( ) - > GetName ( ) , mod , obj - > GetKey ( ) - > GetUoid ( ) . GetLocation ( ) ) ;
hsgResMgr : : ResMgr ( ) - > NewKey ( obj - > GetKey ( ) - > GetName ( ) , mod , obj - > GetKey ( ) - > GetUoid ( ) . GetLocation ( ) ) ;
hsgResMgr : : ResMgr ( ) - > AddViaNotify ( mod - > GetKey ( ) , TRACKED_NEW plObjRefMsg ( obj - > GetKey ( ) , plRefMsg : : kOnCreate , - 1 , plObjRefMsg : : kModifier ) , plRefFlags : : kActiveRef ) ;
hsgResMgr : : ResMgr ( ) - > AddViaNotify ( mod - > GetKey ( ) , new plObjRefMsg ( obj - > GetKey ( ) , plRefMsg : : kOnCreate , - 1 , plObjRefMsg : : kModifier ) , plRefFlags : : kActiveRef ) ;
}
}
@ -4782,7 +4782,7 @@ PF_CONSOLE_CMD( Access,
float range = gunRange ;
float range = gunRange ;
plBulletMsg * bull = TRACKED_NEW plBulletMsg ( nil , nil , nil ) ;
plBulletMsg * bull = new plBulletMsg ( nil , nil , nil ) ;
bull - > FireShot ( pos , dir , radius , range ) ;
bull - > FireShot ( pos , dir , radius , range ) ;
bull - > Send ( ) ;
bull - > Send ( ) ;
@ -4811,7 +4811,7 @@ PF_CONSOLE_CMD( Access,
float range = gunRange ;
float range = gunRange ;
plBulletMsg * bull = TRACKED_NEW plBulletMsg ( nil , nil , nil ) ;
plBulletMsg * bull = new plBulletMsg ( nil , nil , nil ) ;
bull - > FireShot ( pos , dir , radius , range ) ;
bull - > FireShot ( pos , dir , radius , range ) ;
bull - > Send ( ) ;
bull - > Send ( ) ;
@ -4839,7 +4839,7 @@ PF_CONSOLE_CMD( Access,
PrintString ( " Psys not found " ) ;
PrintString ( " Psys not found " ) ;
return ;
return ;
}
}
hsgResMgr : : ResMgr ( ) - > AddViaNotify ( sysKey , TRACKED_NEW plGenRefMsg ( bullKey , plRefMsg : : kOnCreate , 0 , plDynaBulletMgr : : kRefPartyObject ) , plRefFlags : : kPassiveRef ) ;
hsgResMgr : : ResMgr ( ) - > AddViaNotify ( sysKey , new plGenRefMsg ( bullKey , plRefMsg : : kOnCreate , 0 , plDynaBulletMgr : : kRefPartyObject ) , plRefFlags : : kPassiveRef ) ;
PrintString ( " sys added " ) ;
PrintString ( " sys added " ) ;
}
}
@ -5521,7 +5521,7 @@ PF_CONSOLE_CMD( SceneObject_SetEnable, Drawable, // Group name, Function name
bool enable = params [ 1 ] ;
bool enable = params [ 1 ] ;
plEnableMsg * pEMsg = TRACKED_NEW plEnableMsg ;
plEnableMsg * pEMsg = new plEnableMsg ;
pEMsg - > SetCmd ( enable ? plEnableMsg : : kEnable : plEnableMsg : : kDisable ) ;
pEMsg - > SetCmd ( enable ? plEnableMsg : : kEnable : plEnableMsg : : kDisable ) ;
pEMsg - > SetCmd ( plEnableMsg : : kDrawable ) ;
pEMsg - > SetCmd ( plEnableMsg : : kDrawable ) ;
pEMsg - > AddReceiver ( key ) ;
pEMsg - > AddReceiver ( key ) ;
@ -5540,7 +5540,7 @@ PF_CONSOLE_CMD( SceneObject_SetEnable, Physical, // Group name, Function name
bool enable = params [ 1 ] ;
bool enable = params [ 1 ] ;
plEnableMsg * pEMsg = TRACKED_NEW plEnableMsg ;
plEnableMsg * pEMsg = new plEnableMsg ;
pEMsg - > SetCmd ( enable ? plEnableMsg : : kEnable : plEnableMsg : : kDisable ) ;
pEMsg - > SetCmd ( enable ? plEnableMsg : : kEnable : plEnableMsg : : kDisable ) ;
pEMsg - > SetCmd ( plEnableMsg : : kPhysical ) ;
pEMsg - > SetCmd ( plEnableMsg : : kPhysical ) ;
pEMsg - > AddReceiver ( key ) ;
pEMsg - > AddReceiver ( key ) ;
@ -5559,7 +5559,7 @@ PF_CONSOLE_CMD( SceneObject_SetEnable, PhysicalT, // Group name, Function name
bool enable = params [ 1 ] ;
bool enable = params [ 1 ] ;
plEventGroupEnableMsg * pMsg = TRACKED_NEW plEventGroupEnableMsg ;
plEventGroupEnableMsg * pMsg = new plEventGroupEnableMsg ;
if ( enable )
if ( enable )
pMsg - > SetFlags ( plEventGroupEnableMsg : : kCollideOn | plEventGroupEnableMsg : : kReportOn ) ;
pMsg - > SetFlags ( plEventGroupEnableMsg : : kCollideOn | plEventGroupEnableMsg : : kReportOn ) ;
else
else
@ -5582,7 +5582,7 @@ PF_CONSOLE_CMD( SceneObject_SetEnable, Audible, // Group name, Function name
bool enable = params [ 1 ] ;
bool enable = params [ 1 ] ;
plEnableMsg * pEMsg = TRACKED_NEW plEnableMsg ;
plEnableMsg * pEMsg = new plEnableMsg ;
pEMsg - > SetCmd ( enable ? plEnableMsg : : kEnable : plEnableMsg : : kDisable ) ;
pEMsg - > SetCmd ( enable ? plEnableMsg : : kEnable : plEnableMsg : : kDisable ) ;
pEMsg - > SetCmd ( plEnableMsg : : kAudible ) ;
pEMsg - > SetCmd ( plEnableMsg : : kAudible ) ;
pEMsg - > AddReceiver ( key ) ;
pEMsg - > AddReceiver ( key ) ;
@ -5601,7 +5601,7 @@ PF_CONSOLE_CMD( SceneObject_SetEnable, All, // Group name, Function name
bool enable = params [ 1 ] ;
bool enable = params [ 1 ] ;
plEnableMsg * pEMsg = TRACKED_NEW plEnableMsg ;
plEnableMsg * pEMsg = new plEnableMsg ;
pEMsg - > SetCmd ( enable ? plEnableMsg : : kEnable : plEnableMsg : : kDisable ) ;
pEMsg - > SetCmd ( enable ? plEnableMsg : : kEnable : plEnableMsg : : kDisable ) ;
pEMsg - > SetCmd ( plEnableMsg : : kAll ) ;
pEMsg - > SetCmd ( plEnableMsg : : kAll ) ;
pEMsg - > AddReceiver ( key ) ;
pEMsg - > AddReceiver ( key ) ;
@ -5638,7 +5638,7 @@ PF_CONSOLE_CMD( SceneObject, Attach, // Group name, Function name
return ;
return ;
}
}
plAttachMsg * attMsg = TRACKED_NEW plAttachMsg ( parentKey , child , plRefMsg : : kOnRequest , nil ) ;
plAttachMsg * attMsg = new plAttachMsg ( parentKey , child , plRefMsg : : kOnRequest , nil ) ;
plgDispatch : : MsgSend ( attMsg ) ;
plgDispatch : : MsgSend ( attMsg ) ;
sprintf ( str , " %s now child of %s " , childName , parentName ) ;
sprintf ( str , " %s now child of %s " , childName , parentName ) ;
@ -5674,7 +5674,7 @@ PF_CONSOLE_CMD( SceneObject, Detach, // Group name, Function name
& & child - > GetCoordinateInterface ( ) - > GetParent ( ) - > GetOwner ( ) )
& & child - > GetCoordinateInterface ( ) - > GetParent ( ) - > GetOwner ( ) )
{
{
plKey parentKey = child - > GetCoordinateInterface ( ) - > GetParent ( ) - > GetOwner ( ) - > GetKey ( ) ;
plKey parentKey = child - > GetCoordinateInterface ( ) - > GetParent ( ) - > GetOwner ( ) - > GetKey ( ) ;
plAttachMsg * attMsg = TRACKED_NEW plAttachMsg ( parentKey , child , plRefMsg : : kOnRemove , nil ) ;
plAttachMsg * attMsg = new plAttachMsg ( parentKey , child , plRefMsg : : kOnRemove , nil ) ;
plgDispatch : : MsgSend ( attMsg ) ;
plgDispatch : : MsgSend ( attMsg ) ;
sprintf ( str , " %s detached from %s " , childName , parentKey - > GetName ( ) ) ;
sprintf ( str , " %s detached from %s " , childName , parentKey - > GetName ( ) ) ;
@ -5780,7 +5780,7 @@ PF_CONSOLE_CMD( Physics, ApplyForce, "string Object, float x, float y, float z",
if ( key )
if ( key )
{
{
hsVector3 force ( params [ 1 ] , params [ 2 ] , params [ 3 ] ) ;
hsVector3 force ( params [ 1 ] , params [ 2 ] , params [ 3 ] ) ;
plForceMsg * m = TRACKED_NEW plForceMsg ( nil , key , force ) ;
plForceMsg * m = new plForceMsg ( nil , key , force ) ;
plgDispatch : : MsgSend ( m ) ;
plgDispatch : : MsgSend ( m ) ;
}
}
}
}
@ -5793,7 +5793,7 @@ PF_CONSOLE_CMD( Physics, ApplyForceAtPoint, "string Object, float forceX, float
{
{
hsVector3 force ( params [ 1 ] , params [ 2 ] , params [ 3 ] ) ;
hsVector3 force ( params [ 1 ] , params [ 2 ] , params [ 3 ] ) ;
hsPoint3 point ( params [ 4 ] , params [ 5 ] , params [ 6 ] ) ;
hsPoint3 point ( params [ 4 ] , params [ 5 ] , params [ 6 ] ) ;
plOffsetForceMsg * m = TRACKED_NEW plOffsetForceMsg ( nil , key , force , point ) ;
plOffsetForceMsg * m = new plOffsetForceMsg ( nil , key , force , point ) ;
plgDispatch : : MsgSend ( m ) ;
plgDispatch : : MsgSend ( m ) ;
}
}
}
}
@ -5805,7 +5805,7 @@ PF_CONSOLE_CMD( Physics, ApplyTorque, "string Object, float axisX, float axisY,
if ( key )
if ( key )
{
{
hsVector3 torque ( params [ 1 ] , params [ 2 ] , params [ 3 ] ) ;
hsVector3 torque ( params [ 1 ] , params [ 2 ] , params [ 3 ] ) ;
plTorqueMsg * m = TRACKED_NEW plTorqueMsg ( nil , key , torque ) ;
plTorqueMsg * m = new plTorqueMsg ( nil , key , torque ) ;
plgDispatch : : MsgSend ( m ) ;
plgDispatch : : MsgSend ( m ) ;
}
}
}
}
@ -5817,7 +5817,7 @@ PF_CONSOLE_CMD( Physics, ApplyImpulse, "string Object, float x, float y, float z
if ( key )
if ( key )
{
{
hsVector3 impulse ( params [ 1 ] , params [ 2 ] , params [ 3 ] ) ;
hsVector3 impulse ( params [ 1 ] , params [ 2 ] , params [ 3 ] ) ;
plImpulseMsg * m = TRACKED_NEW plImpulseMsg ( nil , key , impulse ) ;
plImpulseMsg * m = new plImpulseMsg ( nil , key , impulse ) ;
plgDispatch : : MsgSend ( m ) ;
plgDispatch : : MsgSend ( m ) ;
}
}
}
}
@ -5830,7 +5830,7 @@ PF_CONSOLE_CMD( Physics, ApplyImpulseAtPoint, "string Object, float impulseX, fl
{
{
hsVector3 impulse ( params [ 1 ] , params [ 2 ] , params [ 3 ] ) ;
hsVector3 impulse ( params [ 1 ] , params [ 2 ] , params [ 3 ] ) ;
hsPoint3 point ( params [ 4 ] , params [ 5 ] , params [ 6 ] ) ;
hsPoint3 point ( params [ 4 ] , params [ 5 ] , params [ 6 ] ) ;
plOffsetImpulseMsg * m = TRACKED_NEW plOffsetImpulseMsg ( nil , key , impulse , point ) ;
plOffsetImpulseMsg * m = new plOffsetImpulseMsg ( nil , key , impulse , point ) ;
plgDispatch : : MsgSend ( m ) ;
plgDispatch : : MsgSend ( m ) ;
}
}
}
}
@ -5842,7 +5842,7 @@ PF_CONSOLE_CMD( Physics, ApplyAngularImpulse, "string Object, float x, float y,
if ( key )
if ( key )
{
{
hsVector3 impulse ( params [ 1 ] , params [ 2 ] , params [ 3 ] ) ;
hsVector3 impulse ( params [ 1 ] , params [ 2 ] , params [ 3 ] ) ;
plAngularImpulseMsg * m = TRACKED_NEW plAngularImpulseMsg ( nil , key , impulse ) ;
plAngularImpulseMsg * m = new plAngularImpulseMsg ( nil , key , impulse ) ;
plgDispatch : : MsgSend ( m ) ;
plgDispatch : : MsgSend ( m ) ;
}
}
}
}
@ -5854,7 +5854,7 @@ PF_CONSOLE_CMD( Physics, ApplyDamping, "string Object, float dampFactor", "Reduc
if ( key )
if ( key )
{
{
float dampFactor = params [ 1 ] ;
float dampFactor = params [ 1 ] ;
plDampMsg * m = TRACKED_NEW plDampMsg ( nil , key , dampFactor ) ;
plDampMsg * m = new plDampMsg ( nil , key , dampFactor ) ;
plgDispatch : : MsgSend ( m ) ;
plgDispatch : : MsgSend ( m ) ;
}
}
}
}
@ -5866,7 +5866,7 @@ PF_CONSOLE_CMD( Physics, ShiftMass, "string Object, float x, float y, float z",
if ( key )
if ( key )
{
{
hsVector3 offset ( params [ 1 ] , params [ 2 ] , params [ 3 ] ) ;
hsVector3 offset ( params [ 1 ] , params [ 2 ] , params [ 3 ] ) ;
plShiftMassMsg * m = TRACKED_NEW plShiftMassMsg ( nil , key , offset ) ;
plShiftMassMsg * m = new plShiftMassMsg ( nil , key , offset ) ;
plgDispatch : : MsgSend ( m ) ;
plgDispatch : : MsgSend ( m ) ;
}
}
}
}
@ -5879,7 +5879,7 @@ PF_CONSOLE_CMD( Physics, Suppress, "string Object, int doSuppress", "Remove(true
int iDoSuppress = params [ 1 ] ;
int iDoSuppress = params [ 1 ] ;
bool doSuppress = iDoSuppress ? true : false ;
bool doSuppress = iDoSuppress ? true : false ;
plSimSuppressMsg * msg = TRACKED_NEW plSimSuppressMsg ( nil , key , doSuppress ) ;
plSimSuppressMsg * msg = new plSimSuppressMsg ( nil , key , doSuppress ) ;
msg - > Send ( ) ;
msg - > Send ( ) ;
}
}
}
}
@ -5891,7 +5891,7 @@ PF_CONSOLE_CMD( Physics, SetEventGroup, "string Object, int group, int status, i
if ( key )
if ( key )
{
{
int group = params [ 1 ] , status = params [ 2 ] , clearOthers = params [ 3 ] ;
int group = params [ 1 ] , status = params [ 2 ] , clearOthers = params [ 3 ] ;
plEventGroupMsg * m = TRACKED_NEW plEventGroupMsg ( nil , key , group , status , clearOthers ) ;
plEventGroupMsg * m = new plEventGroupMsg ( nil , key , group , status , clearOthers ) ;
plgDispatch : : MsgSend ( m ) ;
plgDispatch : : MsgSend ( m ) ;
}
}
}
}
@ -5904,7 +5904,7 @@ PF_CONSOLE_CMD( Physics, Freeze, "string Object, int status", "Immobilize the gi
{
{
int status = params [ 1 ] ;
int status = params [ 1 ] ;
plFreezeMsg * m = TRACKED_NEW plFreezeMsg ( nil , key , nil , status ) ;
plFreezeMsg * m = new plFreezeMsg ( nil , key , nil , status ) ;
plgDispatch : : MsgSend ( m ) ;
plgDispatch : : MsgSend ( m ) ;
}
}
@ -6254,7 +6254,7 @@ void UpdateParticleParam(char *objName, int32_t paramID, float value, void (*Pri
const plParticleSystem * sys = plParticleSystem : : ConvertNoRef ( so - > GetModifier ( i ) ) ;
const plParticleSystem * sys = plParticleSystem : : ConvertNoRef ( so - > GetModifier ( i ) ) ;
if ( sys ! = nil )
if ( sys ! = nil )
{
{
plgDispatch : : MsgSend ( TRACKED_NEW plParticleUpdateMsg ( nil , sys - > GetKey ( ) , nil , paramID , value ) ) ;
plgDispatch : : MsgSend ( new plParticleUpdateMsg ( nil , sys - > GetKey ( ) , nil , paramID , value ) ) ;
PrintString ( " Particle system successfully updated. " ) ;
PrintString ( " Particle system successfully updated. " ) ;
return ;
return ;
}
}
@ -6374,7 +6374,7 @@ PF_CONSOLE_CMD( ParticleSystem,
plArmatureMod * avMod = plAvatarMgr : : GetInstance ( ) - > GetLocalAvatar ( ) ;
plArmatureMod * avMod = plAvatarMgr : : GetInstance ( ) - > GetLocalAvatar ( ) ;
if ( avMod )
if ( avMod )
( TRACKED_NEW plParticleTransferMsg ( nil , avMod - > GetKey ( ) , 0 , so - > GetKey ( ) , ( int ) params [ 1 ] ) ) - > Send ( ) ;
( new plParticleTransferMsg ( nil , avMod - > GetKey ( ) , 0 , so - > GetKey ( ) , ( int ) params [ 1 ] ) ) - > Send ( ) ;
}
}
PF_CONSOLE_CMD ( ParticleSystem ,
PF_CONSOLE_CMD ( ParticleSystem ,
@ -6395,7 +6395,7 @@ PF_CONSOLE_CMD( ParticleSystem,
if ( sys ! = nil )
if ( sys ! = nil )
{
{
uint8_t flags = ( params [ 3 ] ? plParticleKillMsg : : kParticleKillPercentage : 0 ) ;
uint8_t flags = ( params [ 3 ] ? plParticleKillMsg : : kParticleKillPercentage : 0 ) ;
( TRACKED_NEW plParticleKillMsg ( nil , sys - > GetKey ( ) , 0 , params [ 2 ] , params [ 1 ] , flags ) ) - > Send ( ) ;
( new plParticleKillMsg ( nil , sys - > GetKey ( ) , 0 , params [ 2 ] , params [ 1 ] , flags ) ) - > Send ( ) ;
}
}
}
}
@ -6433,7 +6433,7 @@ PF_CONSOLE_CMD( ParticleSystem_Flock,
plParticleEffect * flock = FindFlock ( params [ 0 ] ) ;
plParticleEffect * flock = FindFlock ( params [ 0 ] ) ;
if ( flock )
if ( flock )
{
{
( TRACKED_NEW plParticleFlockMsg ( nil , flock - > GetKey ( ) , 0 , plParticleFlockMsg : : kFlockCmdSetOffset , params [ 1 ] , params [ 2 ] , params [ 3 ] ) ) - > Send ( ) ;
( new plParticleFlockMsg ( nil , flock - > GetKey ( ) , 0 , plParticleFlockMsg : : kFlockCmdSetOffset , params [ 1 ] , params [ 2 ] , params [ 3 ] ) ) - > Send ( ) ;
}
}
}
}
@ -6445,7 +6445,7 @@ PF_CONSOLE_CMD( ParticleSystem_Flock,
plParticleEffect * flock = FindFlock ( params [ 0 ] ) ;
plParticleEffect * flock = FindFlock ( params [ 0 ] ) ;
if ( flock )
if ( flock )
{
{
( TRACKED_NEW plParticleFlockMsg ( nil , flock - > GetKey ( ) , 0 , plParticleFlockMsg : : kFlockCmdSetDissentPoint , params [ 1 ] , params [ 2 ] , params [ 3 ] ) ) - > Send ( ) ;
( new plParticleFlockMsg ( nil , flock - > GetKey ( ) , 0 , plParticleFlockMsg : : kFlockCmdSetDissentPoint , params [ 1 ] , params [ 2 ] , params [ 3 ] ) ) - > Send ( ) ;
}
}
}
}
@ -6599,7 +6599,7 @@ PF_CONSOLE_CMD( Animation, // Group name
" string objName, string animName " , // Params
" string objName, string animName " , // Params
" Start the animation " ) // Help string
" Start the animation " ) // Help string
{
{
plAnimCmdMsg * msg = TRACKED_NEW plAnimCmdMsg ( ) ;
plAnimCmdMsg * msg = new plAnimCmdMsg ( ) ;
msg - > SetCmd ( plAnimCmdMsg : : kContinue ) ;
msg - > SetCmd ( plAnimCmdMsg : : kContinue ) ;
msg - > SetAnimName ( nil ) ;
msg - > SetAnimName ( nil ) ;
msg - > SetBCastFlag ( plMessage : : kPropagateToModifiers ) ;
msg - > SetBCastFlag ( plMessage : : kPropagateToModifiers ) ;
@ -6611,7 +6611,7 @@ PF_CONSOLE_CMD( Animation, // Group name
" string objName, string animName " , // Params
" string objName, string animName " , // Params
" Stop the animation " ) // Help string
" Stop the animation " ) // Help string
{
{
plAnimCmdMsg * msg = TRACKED_NEW plAnimCmdMsg ( ) ;
plAnimCmdMsg * msg = new plAnimCmdMsg ( ) ;
msg - > SetCmd ( plAnimCmdMsg : : kStop ) ;
msg - > SetCmd ( plAnimCmdMsg : : kStop ) ;
msg - > SetAnimName ( nil ) ;
msg - > SetAnimName ( nil ) ;
msg - > SetBCastFlag ( plMessage : : kPropagateToModifiers ) ;
msg - > SetBCastFlag ( plMessage : : kPropagateToModifiers ) ;
@ -6623,7 +6623,7 @@ PF_CONSOLE_CMD( Animation, // Group name
" string objName, string animName, float blend, float rate " , // Params
" string objName, string animName, float blend, float rate " , // Params
" Set the animation's blend value and rate to change " ) // Help string
" Set the animation's blend value and rate to change " ) // Help string
{
{
plAGCmdMsg * msg = TRACKED_NEW plAGCmdMsg ( ) ;
plAGCmdMsg * msg = new plAGCmdMsg ( ) ;
msg - > SetCmd ( plAGCmdMsg : : kSetBlend ) ;
msg - > SetCmd ( plAGCmdMsg : : kSetBlend ) ;
msg - > fBlend = params [ 2 ] ;
msg - > fBlend = params [ 2 ] ;
msg - > fBlendRate = params [ 3 ] ;
msg - > fBlendRate = params [ 3 ] ;
@ -6637,7 +6637,7 @@ PF_CONSOLE_CMD( Animation, // Group name
" string objName, string animName, float amp, float rate " , // Params
" string objName, string animName, float amp, float rate " , // Params
" Set the amplitude of this animation and rate to change " ) // Help string
" Set the amplitude of this animation and rate to change " ) // Help string
{
{
plAGCmdMsg * msg = TRACKED_NEW plAGCmdMsg ( ) ;
plAGCmdMsg * msg = new plAGCmdMsg ( ) ;
msg - > SetCmd ( plAGCmdMsg : : kSetAmp ) ;
msg - > SetCmd ( plAGCmdMsg : : kSetAmp ) ;
msg - > fAmp = params [ 2 ] ;
msg - > fAmp = params [ 2 ] ;
msg - > fAmpRate = params [ 3 ] ;
msg - > fAmpRate = params [ 3 ] ;
@ -6651,7 +6651,7 @@ PF_CONSOLE_CMD( Animation, // Group name
" string objName, string animName, float speed, float rate " , // Params
" string objName, string animName, float speed, float rate " , // Params
" Set the speed of this animation and rate to change " ) // Help string
" Set the speed of this animation and rate to change " ) // Help string
{
{
plAnimCmdMsg * msg = TRACKED_NEW plAnimCmdMsg ( ) ;
plAnimCmdMsg * msg = new plAnimCmdMsg ( ) ;
msg - > SetCmd ( plAnimCmdMsg : : kSetSpeed ) ;
msg - > SetCmd ( plAnimCmdMsg : : kSetSpeed ) ;
msg - > fSpeed = params [ 2 ] ;
msg - > fSpeed = params [ 2 ] ;
msg - > fSpeedChangeRate = params [ 3 ] ;
msg - > fSpeedChangeRate = params [ 3 ] ;
@ -6904,7 +6904,7 @@ PF_CONSOLE_CMD( KI, // Group name
" Upgrade KI to new level. " ) // Help string
" Upgrade KI to new level. " ) // Help string
{
{
// create the mesage to send
// create the mesage to send
pfKIMsg * msg = TRACKED_NEW pfKIMsg ( pfKIMsg : : kUpgradeKILevel ) ;
pfKIMsg * msg = new pfKIMsg ( pfKIMsg : : kUpgradeKILevel ) ;
msg - > SetIntValue ( ( int ) params [ 0 ] ) ;
msg - > SetIntValue ( ( int ) params [ 0 ] ) ;
@ -6918,7 +6918,7 @@ PF_CONSOLE_CMD( KI, // Group name
" Downgrade KI level to next lower level. " ) // Help string
" Downgrade KI level to next lower level. " ) // Help string
{
{
// create the mesage to send
// create the mesage to send
pfKIMsg * msg = TRACKED_NEW pfKIMsg ( pfKIMsg : : kDowngradeKILevel ) ;
pfKIMsg * msg = new pfKIMsg ( pfKIMsg : : kDowngradeKILevel ) ;
msg - > SetIntValue ( ( int ) params [ 0 ] ) ;
msg - > SetIntValue ( ( int ) params [ 0 ] ) ;
@ -6932,7 +6932,7 @@ PF_CONSOLE_CMD( KI, // Group name
" All the phased functionality turned on. " ) // Help string
" All the phased functionality turned on. " ) // Help string
{
{
// create the mesage to send
// create the mesage to send
pfKIMsg * msg = TRACKED_NEW pfKIMsg ( pfKIMsg : : kKIPhasedAllOn ) ;
pfKIMsg * msg = new pfKIMsg ( pfKIMsg : : kKIPhasedAllOn ) ;
// send it off
// send it off
plgDispatch : : MsgSend ( msg ) ;
plgDispatch : : MsgSend ( msg ) ;
@ -6944,7 +6944,7 @@ PF_CONSOLE_CMD( KI, // Group name
" All the phased functionality turned off. " ) // Help string
" All the phased functionality turned off. " ) // Help string
{
{
// create the mesage to send
// create the mesage to send
pfKIMsg * msg = TRACKED_NEW pfKIMsg ( pfKIMsg : : kKIPhasedAllOff ) ;
pfKIMsg * msg = new pfKIMsg ( pfKIMsg : : kKIPhasedAllOff ) ;
// send it off
// send it off
plgDispatch : : MsgSend ( msg ) ;
plgDispatch : : MsgSend ( msg ) ;
@ -6956,7 +6956,7 @@ PF_CONSOLE_CMD( KI, // Group name
" Add the journal to the Blackbar. " ) // Help string
" Add the journal to the Blackbar. " ) // Help string
{
{
// create the message to send
// create the message to send
pfKIMsg * msg = TRACKED_NEW pfKIMsg ( pfKIMsg : : kAddJournalBook ) ;
pfKIMsg * msg = new pfKIMsg ( pfKIMsg : : kAddJournalBook ) ;
// send if off
// send if off
plgDispatch : : MsgSend ( msg ) ;
plgDispatch : : MsgSend ( msg ) ;
@ -6968,7 +6968,7 @@ PF_CONSOLE_CMD( KI, // Group name
" Removes the journal from the Blackbar. " ) // Help string
" Removes the journal from the Blackbar. " ) // Help string
{
{
// create the message to send
// create the message to send
pfKIMsg * msg = TRACKED_NEW pfKIMsg ( pfKIMsg : : kRemoveJournalBook ) ;
pfKIMsg * msg = new pfKIMsg ( pfKIMsg : : kRemoveJournalBook ) ;
// send if off
// send if off
plgDispatch : : MsgSend ( msg ) ;
plgDispatch : : MsgSend ( msg ) ;
@ -7045,7 +7045,7 @@ PF_CONSOLE_CMD( Python,
const char * extraParms = " " ;
const char * extraParms = " " ;
if ( numParams > 1 )
if ( numParams > 1 )
extraParms = params [ 1 ] ;
extraParms = params [ 1 ] ;
pfBackdoorMsg * msg = TRACKED_NEW pfBackdoorMsg ( params [ 0 ] , extraParms ) ;
pfBackdoorMsg * msg = new pfBackdoorMsg ( params [ 0 ] , extraParms ) ;
// send it off
// send it off
plgDispatch : : MsgSend ( msg ) ;
plgDispatch : : MsgSend ( msg ) ;
}
}