Skip to content

Commit

Permalink
deploy: e990495
Browse files Browse the repository at this point in the history
  • Loading branch information
MiranDMC committed Oct 31, 2024
1 parent 641a18a commit 8ec87be
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/gta3/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"0AD3": "int buf = allocate_memory 64\nstring_format buf \"%d + %d = %d\" 2 2 4\nfree_memory buf",
"0AE1": "float x,y,z\nChar ped\n\nwhile true\n wait 0\n \n if\n test_cheat \"1\"\n then\n get_active_camera_coordinates {store_to} x y z\n \n if\n get_random_char_in_sphere_no_save_recursive {pos} x y z {radius} 30.0 {find_next} false {skip_dead} true {store_to} ped\n then\n explode_char_head ped // the first one\n \n while get_random_char_in_sphere_no_save_recursive {pos} x y z {radius} 30.0 {find_next} true {skip_dead} true {store_to} ped\n explode_char_head ped\n end\n else\n print_formatted_now \"First not found\" {time} 4000\n end\n end\nend",
"0AE2": "while true\n wait {time} 100\n\n float x, y, z\n x, y, z = get_active_camera_coordinates\n \n int color = generate_random_int_in_range {min} 0 {max} 9\n \n // iterate near cars\n int handle = get_random_car_in_sphere_no_save_recursive {pos} x y z {radius} 40.0 {findNext} false {skipWrecked} true // initialize search, get first\n while handle <> -1 // found!\n change_car_colour handle {color1} color {color2} color\n \n handle = get_random_car_in_sphere_no_save_recursive {pos} x y z {radius} 40.0 {findNext} true {skipWrecked} true // get next\n end\nend",
"0AE3": "while true\n wait {time} 0 // once every render frame\n\n float x, y, z\n x, y, z = get_active_camera_coordinates\n \n // iterate near objects\n int handle = get_random_object_in_sphere_no_save_recursive {pos} x y z {radius} 50.0 {findNext} false // initialize search, get first\n while handle <> -1 // found!\n DRAW_OBJECT_INFO(handle) // call function for every found object\n\n handle = get_random_object_in_sphere_no_save_recursive {pos} x y z {radius} 50.0 {findNext} true // get next\n end\nend\n\n\n// display text at 3d coordinates\nfunction DRAW_OBJECT_INFO(obj :int)\n int modelIdx = get_object_model obj\n\n float pos[3]\n pos[0], pos[1], pos[2] = get_object_coordinates obj\n\n float screenPos[2]\n float screenSize[2]\n screenPos[0], screenPos[1], screenSize[0], screenSize[1] = convert_3d_to_screen_2d {pos} pos[0] pos[1] pos[2] {nearClip} true {farClip} true\n \n use_text_commands {state} true\n \n // calculate our font proportions\n screenSize[0] = screenSize[1]\n screenSize[0] *= 0.3 \n set_text_scale {widthScale} screenSize[0] {heightScale} screenSize[1]\n \n set_text_centre {state} true\n \n set_text_colour {rgb} 255 255 0 {alpha} 255\n set_text_edge {size} 1 {RGBA} 0 0 0 64\n \n display_text_formatted {offsetLeft} screenPos[0] {offsetTop} screenPos[1] {format} \"%d\" {args} modelIdx\nend"
"0AE3": "while true\n wait {time} 0 // once every render frame\n\n float x, y, z\n x, y, z = get_active_camera_coordinates\n \n // iterate near objects\n int handle = get_random_object_in_sphere_no_save_recursive {pos} x y z {radius} 30.0 {findNext} false // initialize search, get first\n while handle <> -1 // found!\n DRAW_OBJECT_INFO(handle) // call function for every found object\n\n handle = get_random_object_in_sphere_no_save_recursive {pos} x y z {radius} 30.0 {findNext} true // get next\n end\nend\n\n\n// display text at 3d coordinates\nfunction DRAW_OBJECT_INFO(obj :int)\n int modelIdx = get_object_model obj\n\n float pos[3]\n pos[0], pos[1], pos[2] = get_object_coordinates obj\n\n float screenPos[2]\n float screenSize[2]\n screenPos[0], screenPos[1], screenSize[0], screenSize[1] = convert_3d_to_screen_2d {pos} pos[0] pos[1] pos[2] {nearClip} true {farClip} true\n \n use_text_commands {state} true\n \n // calculate our font proportions\n screenSize[0] = screenSize[1]\n screenSize[0] *= 0.3 \n set_text_scale {widthScale} screenSize[0] {heightScale} screenSize[1]\n \n set_text_centre {state} true\n \n set_text_colour {rgb} 255 255 0 {alpha} 255\n set_text_edge {size} 1 {RGBA} 0 0 0 64\n \n display_text_formatted {offsetLeft} screenPos[0] {offsetTop} screenPos[1] {format} \"%d\" {args} modelIdx\nend"
},
"bitwise": {
"0B10": "<%= output1 %> = 2 and 3 // 0b10 and 0b11 = 0b10 (2)",
Expand Down
2 changes: 1 addition & 1 deletion assets/sa/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"0AD3": "int buf = allocate_memory 64\nstring_format buf \"%d + %d = %d\" 2 2 4\nfree_memory buf",
"0AE1": "float x,y,z\nChar ped\n\nwhile true\n wait 0\n \n if\n test_cheat \"1\"\n then\n get_active_camera_coordinates {store_to} x y z\n \n if\n get_random_char_in_sphere_no_save_recursive {pos} x y z {radius} 30.0 {find_next} false {skip_dead} true {store_to} ped\n then\n explode_char_head ped // the first one\n \n while get_random_char_in_sphere_no_save_recursive {pos} x y z {radius} 30.0 {find_next} true {skip_dead} true {store_to} ped\n explode_char_head ped\n end\n else\n print_formatted_now \"First not found\" {time} 4000\n end\n end\nend",
"0AE2": "while true\n wait {time} 100\n\n float x, y, z\n x, y, z = get_active_camera_coordinates\n \n int color = generate_random_int_in_range {min} 0 {max} 9\n \n // iterate near cars\n int handle = get_random_car_in_sphere_no_save_recursive {pos} x y z {radius} 40.0 {findNext} false {skipWrecked} true // initialize search, get first\n while handle <> -1 // found!\n change_car_colour handle {color1} color {color2} color\n \n handle = get_random_car_in_sphere_no_save_recursive {pos} x y z {radius} 40.0 {findNext} true {skipWrecked} true // get next\n end\nend",
"0AE3": "while true\n wait {time} 0 // once every render frame\n\n float x, y, z\n x, y, z = get_active_camera_coordinates\n \n // iterate near objects\n int handle = get_random_object_in_sphere_no_save_recursive {pos} x y z {radius} 50.0 {findNext} false // initialize search, get first\n while handle <> -1 // found!\n DRAW_OBJECT_INFO(handle) // call function for every found object\n\n handle = get_random_object_in_sphere_no_save_recursive {pos} x y z {radius} 50.0 {findNext} true // get next\n end\nend\n\n\n// display text at 3d coordinates\nfunction DRAW_OBJECT_INFO(obj :int)\n int modelIdx = get_object_model obj\n\n float pos[3]\n pos[0], pos[1], pos[2] = get_object_coordinates obj\n\n float screenPos[2]\n float screenSize[2]\n screenPos[0], screenPos[1], screenSize[0], screenSize[1] = convert_3d_to_screen_2d {pos} pos[0] pos[1] pos[2] {nearClip} true {farClip} true\n \n use_text_commands {state} true\n \n // calculate our font proportions\n screenSize[0] = screenSize[1]\n screenSize[0] *= 0.3 \n set_text_scale {widthScale} screenSize[0] {heightScale} screenSize[1]\n \n set_text_centre {state} true\n \n set_text_colour {rgb} 255 255 0 {alpha} 255\n set_text_edge {size} 1 {RGBA} 0 0 0 64\n \n display_text_formatted {offsetLeft} screenPos[0] {offsetTop} screenPos[1] {format} \"%d\" {args} modelIdx\nend",
"0AE3": "while true\n wait {time} 0 // once every render frame\n\n float x, y, z\n x, y, z = get_active_camera_coordinates\n \n // iterate near objects\n int handle = get_random_object_in_sphere_no_save_recursive {pos} x y z {radius} 30.0 {findNext} false // initialize search, get first\n while handle <> -1 // found!\n DRAW_OBJECT_INFO(handle) // call function for every found object\n\n handle = get_random_object_in_sphere_no_save_recursive {pos} x y z {radius} 30.0 {findNext} true // get next\n end\nend\n\n\n// display text at 3d coordinates\nfunction DRAW_OBJECT_INFO(obj :int)\n int modelIdx = get_object_model obj\n\n float pos[3]\n pos[0], pos[1], pos[2] = get_object_coordinates obj\n\n float screenPos[2]\n float screenSize[2]\n screenPos[0], screenPos[1], screenSize[0], screenSize[1] = convert_3d_to_screen_2d {pos} pos[0] pos[1] pos[2] {nearClip} true {farClip} true\n \n use_text_commands {state} true\n \n // calculate our font proportions\n screenSize[0] = screenSize[1]\n screenSize[0] *= 0.3 \n set_text_scale {widthScale} screenSize[0] {heightScale} screenSize[1]\n \n set_text_centre {state} true\n \n set_text_colour {rgb} 255 255 0 {alpha} 255\n set_text_edge {size} 1 {RGBA} 0 0 0 64\n \n display_text_formatted {offsetLeft} screenPos[0] {offsetTop} screenPos[1] {format} \"%d\" {args} modelIdx\nend",
"0DD5": "get_platform 0@\nprint_help_formatted \"Platform is %d\" 0@",
"2000": ":my_funct\n get_cleo_arg_count 31@\n print_formatted_now \"called with %d arguments\" {time} 3000 {args} 31@\ncleo_return",
"2002": "cleo_return_with true retArgs 0@",
Expand Down
2 changes: 1 addition & 1 deletion assets/vc/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"0AD3": "int buf = allocate_memory 64\nstring_format buf \"%d + %d = %d\" 2 2 4\nfree_memory buf",
"0AE1": "float x,y,z\nChar ped\n\nwhile true\n wait 0\n \n if\n test_cheat \"1\"\n then\n get_active_camera_coordinates {store_to} x y z\n \n if\n get_random_char_in_sphere_no_save_recursive {pos} x y z {radius} 30.0 {find_next} false {skip_dead} true {store_to} ped\n then\n explode_char_head ped // the first one\n \n while get_random_char_in_sphere_no_save_recursive {pos} x y z {radius} 30.0 {find_next} true {skip_dead} true {store_to} ped\n explode_char_head ped\n end\n else\n print_formatted_now \"First not found\" {time} 4000\n end\n end\nend",
"0AE2": "while true\n wait {time} 100\n\n float x, y, z\n x, y, z = get_active_camera_coordinates\n \n int color = generate_random_int_in_range {min} 0 {max} 9\n \n // iterate near cars\n int handle = get_random_car_in_sphere_no_save_recursive {pos} x y z {radius} 40.0 {findNext} false {skipWrecked} true // initialize search, get first\n while handle <> -1 // found!\n change_car_colour handle {color1} color {color2} color\n \n handle = get_random_car_in_sphere_no_save_recursive {pos} x y z {radius} 40.0 {findNext} true {skipWrecked} true // get next\n end\nend",
"0AE3": "while true\n wait {time} 0 // once every render frame\n\n float x, y, z\n x, y, z = get_active_camera_coordinates\n \n // iterate near objects\n int handle = get_random_object_in_sphere_no_save_recursive {pos} x y z {radius} 50.0 {findNext} false // initialize search, get first\n while handle <> -1 // found!\n DRAW_OBJECT_INFO(handle) // call function for every found object\n\n handle = get_random_object_in_sphere_no_save_recursive {pos} x y z {radius} 50.0 {findNext} true // get next\n end\nend\n\n\n// display text at 3d coordinates\nfunction DRAW_OBJECT_INFO(obj :int)\n int modelIdx = get_object_model obj\n\n float pos[3]\n pos[0], pos[1], pos[2] = get_object_coordinates obj\n\n float screenPos[2]\n float screenSize[2]\n screenPos[0], screenPos[1], screenSize[0], screenSize[1] = convert_3d_to_screen_2d {pos} pos[0] pos[1] pos[2] {nearClip} true {farClip} true\n \n use_text_commands {state} true\n \n // calculate our font proportions\n screenSize[0] = screenSize[1]\n screenSize[0] *= 0.3 \n set_text_scale {widthScale} screenSize[0] {heightScale} screenSize[1]\n \n set_text_centre {state} true\n \n set_text_colour {rgb} 255 255 0 {alpha} 255\n set_text_edge {size} 1 {RGBA} 0 0 0 64\n \n display_text_formatted {offsetLeft} screenPos[0] {offsetTop} screenPos[1] {format} \"%d\" {args} modelIdx\nend"
"0AE3": "while true\n wait {time} 0 // once every render frame\n\n float x, y, z\n x, y, z = get_active_camera_coordinates\n \n // iterate near objects\n int handle = get_random_object_in_sphere_no_save_recursive {pos} x y z {radius} 30.0 {findNext} false // initialize search, get first\n while handle <> -1 // found!\n DRAW_OBJECT_INFO(handle) // call function for every found object\n\n handle = get_random_object_in_sphere_no_save_recursive {pos} x y z {radius} 30.0 {findNext} true // get next\n end\nend\n\n\n// display text at 3d coordinates\nfunction DRAW_OBJECT_INFO(obj :int)\n int modelIdx = get_object_model obj\n\n float pos[3]\n pos[0], pos[1], pos[2] = get_object_coordinates obj\n\n float screenPos[2]\n float screenSize[2]\n screenPos[0], screenPos[1], screenSize[0], screenSize[1] = convert_3d_to_screen_2d {pos} pos[0] pos[1] pos[2] {nearClip} true {farClip} true\n \n use_text_commands {state} true\n \n // calculate our font proportions\n screenSize[0] = screenSize[1]\n screenSize[0] *= 0.3 \n set_text_scale {widthScale} screenSize[0] {heightScale} screenSize[1]\n \n set_text_centre {state} true\n \n set_text_colour {rgb} 255 255 0 {alpha} 255\n set_text_edge {size} 1 {RGBA} 0 0 0 64\n \n display_text_formatted {offsetLeft} screenPos[0] {offsetTop} screenPos[1] {format} \"%d\" {args} modelIdx\nend"
},
"bitwise": {
"0B10": "<%= output1 %> = 2 and 3 // 0b10 and 0b11 = 0b10 (2)",
Expand Down
2 changes: 1 addition & 1 deletion ngsw.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"configVersion": 1,
"timestamp": 1730405343383,
"timestamp": 1730406844258,
"index": "/index.html",
"assetGroups": [
{
Expand Down

0 comments on commit 8ec87be

Please sign in to comment.