{"id":24626714,"url":"https://github.com/crayder/model-sizes-plus","last_synced_at":"2026-01-04T00:41:57.574Z","repository":{"id":36676115,"uuid":"40982537","full_name":"Crayder/Model-Sizes-Plus","owner":"Crayder","description":"Updated, advanced, more precise version of the old modelsizes include.","archived":false,"fork":false,"pushed_at":"2020-10-02T23:17:00.000Z","size":1195,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-25T04:49:32.183Z","etag":null,"topics":["include","sa-mp"],"latest_commit_sha":null,"homepage":null,"language":"Pawn","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Crayder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-18T16:15:00.000Z","updated_at":"2024-03-27T04:32:34.000Z","dependencies_parsed_at":"2022-09-05T09:01:21.750Z","dependency_job_id":null,"html_url":"https://github.com/Crayder/Model-Sizes-Plus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crayder%2FModel-Sizes-Plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crayder%2FModel-Sizes-Plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crayder%2FModel-Sizes-Plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crayder%2FModel-Sizes-Plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Crayder","download_url":"https://codeload.github.com/Crayder/Model-Sizes-Plus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244525576,"owners_count":20466548,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["include","sa-mp"],"created_at":"2025-01-25T04:49:34.884Z","updated_at":"2026-01-04T00:41:57.548Z","avatar_url":"https://github.com/Crayder.png","language":"Pawn","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Model Sizes Plus\nUpdated, advanced, more precise version of the old modelsizes include.\n\n## Details\nBasically said, this is just the better version of the old one. When you know what makes this one better you'll drop the old one immediatly!\n\n* Contains SA-MP objects.\n* Extreme percision (see picture below for comparison). *\n* Exact offsets.\n* Easy to update with new versions of SA-MP (new objects).\n* Adds exact bounding boxes.\n* Adds exact dimensions.\n\n## Generator\n```pawn\n//Model Sphere Export\nfremove(\"sizes.txt\"); fremove(\"offsets.txt\");\nnew Line[2][1536], Float:oX, Float:oY, Float:oZ, Float:R, File:Sizes = fopen(\"sizes.txt\", io_append), File:Offsets = fopen(\"offsets.txt\", io_append);\nfor(new row; row \u003c 2000; row++)\n{\n\tLine[0][0] = EOS; Line[1][0] = EOS;\n\tstrcat(Line[0], \"\\t\\t\"); strcat(Line[1], \"\\t\\t\");\n\tfor(new col; col \u003c 10; col++)\n\t{\n\t\tCA_GetModelBoundingSphere((row * 10) + col, oX, oY, oZ, R);\n\t\tstrcat(Line[0], sprintf(\"%0.6f, \", R));\n\t\tstrcat(Line[1], sprintf(\"{%0.6f, %0.6f, %0.6f}, \", oX, oY, oZ));\n\t}\n\tstrcat(Line[0], \"\\r\\n\"); strcat(Line[1], \"\\r\\n\");\n\tfwrite(Sizes, Line[0]); fwrite(Offsets, Line[1]);\n}\nfclose(Sizes);\nfclose(Offsets);\n//Model Dimension Export\nfremove(\"dims.txt\");\nnew Line[1536], Float:Min[3], Float:Max[3], File:Dimensions = fopen(\"dims.txt\", io_append);\n\t\nfor(new row; row \u003c 4000; row++)\n{\n\tLine[0] = EOS;\n\tstrcat(Line, \"\\t\\t\");\n\tfor(new col; col \u003c 5; col++)\n\t{\n\t\tCA_GetModelBoundingBox((row * 5) + col, Min[0], Min[1], Min[2], Max[0], Max[1], Max[2]);\n\t\tstrcat(Line, sprintf(\"{{%0.6f, %0.6f, %0.6f}, {%0.6f, %0.6f, %0.6f}}, \", Min[0], Min[1], Min[2], Max[0], Max[1], Max[2]));\n\t}\n\tstrcat(Line, \"\\r\\n\");\n\tfwrite(Dimensions, Line);\n}\nfclose(Dimensions);\n```\n\n## Extra\n\n![Example Image](http://i.imgur.com/VRB9NNb.png \"Example Image\")\n\n_* Green = New, Red = Old_\n\n_* Many (most) other objects are affected also. Many even have differences over 100, A couple have differences over 200! Kalcor can't be blamed for these faults though, he extracted the data directly form the game files._\n\n\nThanks Y-Less for releasing the old one.\n\nThanks Pottus, Chris420, and Slice for ColAndreas (making this possible).\n\nTo see major range differences (above 1.0), see the differences.csv table.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrayder%2Fmodel-sizes-plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrayder%2Fmodel-sizes-plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrayder%2Fmodel-sizes-plus/lists"}