Changeset 882 for Daodan/src


Ignore:
Timestamp:
Jun 4, 2013, 5:35:02 PM (12 years ago)
Author:
alloc
Message:

Daodan: Added BSL var "show_triggervolumes". Not yet working though

Location:
Daodan/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/Daodan_BSL.c

    r877 r882  
    8585                end = args[1].val.value_int32;
    8686        }
    87        
     87
    8888        ret->val.value_int32 = start + (rand() % (uint32_t)(end - start + 1));
    8989        ret->type = sl_int32;
     
    857857        SLrScript_Command_Register_ReturnType("st", "Prints to console in color", "", sl_void, bsl_dprintcolored);
    858858        SLrScript_Command_Register_ReturnType("d_dprint", "Prints to console in color", "", sl_void, bsl_dprintcolored);
     859
     860        SLrGlobalVariable_Register_Int32("show_triggervolumes", "Show trigger volumes", &OBJgTriggerVolume_Visible);
    859861}
    860862
  • Daodan/src/Oni_Symbols.h

    r879 r882  
    7979#define SSgSearchOnDisk         (*((bool*)0x005eb758))
    8080
     81// OBJgTriggerVolume_Visible - bsl var to show trigger volumes
     82#define OBJgTriggerVolume_Visible       (*((bool*)0x005ec6c4))
     83
    8184
    8285// Method signature for script (BSL) functions
     
    166169
    167170// Register a global BSL variable
     171DefFunc(uint16_t, SLrGlobalVariable_Register_Bool, ONICALL, (char* name, char* desc, UUtBool* data), 0x00477f50);
    168172DefFunc(uint16_t, SLrGlobalVariable_Register_Int32, ONICALL, (char* name, char* desc, int32_t* data), 0x00477e30);
    169173DefFunc(uint16_t, SLrGlobalVariable_Register_Float, ONICALL, (char* name, char* desc, float* data), 0x00477ec0);
Note: See TracChangeset for help on using the changeset viewer.