equal
deleted
inserted
replaced
1107 PlaySound(TSound(lua_tointeger(L, 1))) |
1107 PlaySound(TSound(lua_tointeger(L, 1))) |
1108 else if lua_gettop(L) = 2 then |
1108 else if lua_gettop(L) = 2 then |
1109 begin |
1109 begin |
1110 gear:= GearByUID(lua_tointeger(L, 2)); |
1110 gear:= GearByUID(lua_tointeger(L, 2)); |
1111 if (gear <> nil) and (gear^.Kind = gtHedgehog) and (gear^.Hedgehog <> nil) then |
1111 if (gear <> nil) and (gear^.Kind = gtHedgehog) and (gear^.Hedgehog <> nil) then |
1112 PlaySound(TSound(lua_tointeger(L, 1)),gear^.Hedgehog^.Team^.Voicepack) |
1112 AddVoice(TSound(lua_tointeger(L, 1)),gear^.Hedgehog^.Team^.Voicepack) |
1113 end |
1113 end |
1114 else LuaError('Lua: Wrong number of parameters passed to PlaySound!'); |
1114 else LuaError('Lua: Wrong number of parameters passed to PlaySound!'); |
1115 lc_playsound:= 0; |
1115 lc_playsound:= 0; |
1116 end; |
1116 end; |
1117 |
1117 |