ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/Daodan_BSL.c
(Generate patch)

Comparing Daodan/src/Daodan_BSL.c (file contents):
Revision 475 by rossy, Fri Oct 30 08:52:50 2009 UTC vs.
Revision 476 by gumby, Tue Nov 3 10:38:47 2009 UTC

# Line 672 | Line 672 | void SLrConfig()
672          DDrStartupMessage("finished parsing");
673   }
674  
675 + uint16_t ONICALL bsl_findmsg(sl_callinfo* callinfo, uint32_t numargs, sl_arg args[], int* dontuse1, int* dontuse2, sl_arg* ret)
676 + {
677 +        //DDrMake_Weapon_Message(args[0].value_str32);
678 +        return false;
679 + }
680   void SLrDaodan_Initalize()
681   {
682  
# Line 683 | Line 688 | void SLrDaodan_Initalize()
688          //DDrPatch_Const(OniExe + 0x0011BB64, regen_patch);
689  
690          SLrConfig();
691 <        
691 >        SLrScript_Command_Register_ReturnType("d_wp", "Shows weapon message", "wpn:string", sl_void, bsl_findmsg);
692  
693          SLrScript_Command_Register_ReturnType("int32mul", "Multiplies two numbers", "n1:int n2:int", sl_int32, bsl_int32mul);
694          SLrScript_Command_Register_ReturnType("mul", "Multiplies two numbers", "[int1:int|float1:float] [int2:int|float2:float]", sl_float, bsl_mul);

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)