Mossy Posted April 11, 2013 Share Posted April 11, 2013 Long story short, I divided my race resource into DD, DM, etc and I want to disable the top times for DD but I could not find what script stores the function of starting the race_toptimes resource. Basically, how can I stop the race_toptimes resource from starting when I start DD? Link to comment
MIKI785 Posted April 11, 2013 Share Posted April 11, 2013 This should go to scripting... anyway, if all your DD maps got DD prefix, you could create resource which checks map name at start and if it has DD, use stopResource to stop toptimes. stopResource needs ACL allowance. If you can't do it, post in scripting section. Link to comment
Puma Posted April 12, 2013 Share Posted April 12, 2013 No toptimes are recorded in maps that don't have checkpoints ( = DD/DM )...? Link to comment
Mossy Posted April 13, 2013 Author Share Posted April 13, 2013 No toptimes are recorded in maps that don't have checkpoints ( = DD/DM )...? If I start a DD map and it finishes it doesn't record a top time but apparently the top times table still shows. How can I disable that? Link to comment
Puma Posted April 14, 2013 Share Posted April 14, 2013 You need to edit the toptimes scripts. I haven't tested this myself, but you could try this: Go to the race_toptimes resource and open toptimes_client.lua. Go to line 609: if self.startshow then Replace it with: local ddMap = true if #getElementsByType("checkpoint") > 0 then -- checkpoints = racemap ddMap = false else -- checking if there is a Hunter-pickup for i, pickup in pais ( getElementsByType ( "racepickup" ) ) do local type, vehicle = getElementData(pickup,"type"), getElementData(pickup,"vehicle") if type == "vehiclechange" and vehicle and tonumber(vehicle) == getVehicleModelFromName("Hunter") then ddMap = false end end end if not ddMap then Again, I haven't tested this, so no guarantee that it works. Link to comment
Mossy Posted April 14, 2013 Author Share Posted April 14, 2013 It stopped the top times from showing at the start but if I press F5 they're still there. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now