RigidChips
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Juz Radar + Kedji Truck Mod

2 posters

Go down

Juz Radar + Kedji Truck Mod Empty Juz Radar + Kedji Truck Mod

Post by Timothy Ashtön Wed Feb 09, 2011 9:04 pm

This is not mine, it was to complex for me to understand, this is Juz and Kedji's
You will need Juz's Library you can download that here ==>> Juz's Index Library

This was meant as a re-post from the old forum, as well as for SuperShade to see the radar. Controls are basic, they should be in text at top left when loaded chip in-game for the control of the truck.
For the radar, it should also be there but there is and orange bar on the left side of screen, click hold and move up to increase range, down to decrease.

Code:
// [RCD]
Val
{
   BRAKES(default=0, max=5000, step=2500, disp=0)
   DISH(default=0, min=-180, max=180, disp=0)
   DISH2(default=0, max=90, disp=0)
   ENGINE(default=0, min=-10000, max=45000, step=5000)
   HBRAKES(default=0, max=10000, step=2500, disp=0)
   LIGHTS(default=#FFFF00, disp=0)
   RADARSWITCH(default=0, max=1, disp=0)
   TURN(default=180, min=160, max=200, step=2, disp=0)
}
Key
{
}
Body
{
   Core() {
      S:Cowl(angle=90, effect=#F000) {
         S:Cowl(angle=90, option=3, effect=#F000) {
            S:Cowl(effect=#F000) {
               S:Cowl(effect=#F000) {
                  S:Cowl(angle=60, effect=#F000) {
                     S:Cowl(angle=-140, color=#0000FF) {
                        S:Cowl(angle=-10, color=#0000FF) {
                           E:Cowl(color=#0000FF) {
                              N:Cowl(angle=-10, color=#0000FF) {
                                 N:Cowl(angle=-60, color=#0000FF) {
                                    N:Cowl(color=#0000FF) {
                                       N:Cowl(angle=50, color=0, effect=#50FF) {
                                          N:Cowl(angle=-70, color=#0000FF) {
                                             N:Cowl(color=#0000FF) {
                                                N:Cowl(color=#0000FF) {
                                                   N:Cowl(angle=-90, color=#0000FF) {
                                                      N:Cowl(color=#0000FF) {
                                                         N:Cowl(angle=90, color=#C0C0C0) {
                                                            N:Cowl(color=#C0C0C0) {
                                                               N:Cowl(color=#C0C0C0) {
                                                                  N:Cowl(color=#C0C0C0) {
                                                                     N:Cowl(color=#C0C0C0) {
                                                                        N:Cowl(color=#C0C0C0) {
                                                                           N:Cowl(color=#C0C0C0) {
                                                                              N:Cowl(angle=-90, color=#0000FF) {
                                                                                 E:Cowl(color=#0000FF) {
                                                                                    S:Cowl(angle=-90, color=#0000FF) {
                                                                                       S:Cowl(color=#0000FF) {
                                                                                          S:Cowl(angle=-16, color=#0000FF) { }
                                                                                       }
                                                                                    }
                                                                                    E:Cowl(angle=-90, color=#0000FF) {
                                                                                       E:Cowl(option=3, color=#0000FF) { }
                                                                                    }
                                                                                 }
                                                                              }
                                                                           }
                                                                           N:Cowl(angle=15, effect=#F000) {
                                                                              N:Cowl(angle=-105) { }
                                                                           }
                                                                        }
                                                                        E:Cowl(angle=-90, option=3, color=#0000FF) { }
                                                                     }
                                                                  }
                                                                  E:Cowl(angle=-50, color=#0000FF) {
                                                                     N:Cowl(color=#0000FF) {
                                                                        N:Cowl(angle=-90, option=4, color=#0000FF) { }
                                                                     }
                                                                  }
                                                               }
                                                            }
                                                            E:Cowl(angle=-50, color=#0000FF) {
                                                               N:Cowl(color=#0000FF) { }
                                                            }
                                                         }
                                                         E:Cowl(angle=-90, color=#0000FF) {
                                                            E:Cowl(color=#0000FF) {
                                                               E:Cowl(color=#0000FF) { }
                                                            }
                                                         }
                                                      }
                                                      E:Cowl(angle=-90, color=0, effect=#50FF) {
                                                         E:Cowl(color=0, effect=#50FF) {
                                                            E:Cowl(color=0, effect=#50FF) { }
                                                         }
                                                      }
                                                   }
                                                }
                                             }
                                          }
                                          E:Cowl(angle=-90, option=3, color=0, effect=#50FF) { }
                                       }
                                       E:Cowl(angle=-90, color=#0000FF) {
                                          N:Cowl(option=3, color=#0000FF) { }
                                          E:Cowl(option=4, color=#0000FF) { }
                                       }
                                       N:Cowl(angle=-150, effect=#F000) {
                                          N:Cowl(angle=-50, effect=#F000) {
                                             N:Cowl(angle=60, color=LIGHTS) {
                                                N:Cowl(angle=120, color=LIGHTS) { }
                                             }
                                          }
                                       }
                                    }
                                    E:Cowl(angle=-90, color=#0000FF) { }
                                 }
                                 E:Cowl(angle=-90, option=4, color=#0000FF) { }
                              }
                              E:Cowl(color=#0000FF) {
                                 N:Cowl(angle=-50, color=#0000FF) {
                                    N:Cowl(angle=-50, color=#0000FF) {
                                       N:Cowl(angle=-50, color=#0000FF) {
                                          N:Cowl(angle=60, color=0) {
                                             N:Cowl(color=0) {
                                                N:Cowl(color=0) {
                                                   N:Cowl(color=0) {
                                                      N:Cowl(color=0) {
                                                         N:Cowl(color=0) {
                                                            N:Cowl(angle=-70, effect=#F000) {
                                                               N:Cowl(angle=140, effect=#F000) {
                                                                  N:Cowl(angle=110, color=0) {
                                                                     S:Cowl(angle=-50, color=#0000FF) {
                                                                        S:Cowl(angle=50, effect=#F000) {
                                                                           S:Cowl(angle=50, color=#0000FF) {
                                                                              S:Cowl(angle=-50) { }
                                                                           }
                                                                        }
                                                                     }
                                                                     E:Cowl(angle=-140, color=#0000FF) { }
                                                                  }
                                                               }
                                                            }
                                                            E:Cowl(angle=140, color=#0000FF) { }
                                                         }
                                                         E:Cowl(angle=140, color=#0000FF) { }
                                                      }
                                                      E:Cowl(angle=140, color=#0000FF) { }
                                                   }
                                                   E:Cowl(angle=120, color=0) {
                                                      E:Cowl(angle=30, color=0) {
                                                         N:Cowl(angle=90, color=0) { }
                                                      }
                                                      N:Cowl(angle=90, option=3, color=0) { }
                                                   }
                                                }
                                                E:Cowl(angle=120, color=0) {
                                                   E:Cowl(angle=30, color=0) { }
                                                }
                                             }
                                             E:Cowl(angle=120, color=0) {
                                                E:Cowl(angle=30, color=0) { }
                                                S:Cowl(angle=70, option=4, color=0) { }
                                             }
                                          }
                                          W:Cowl(angle=90, option=3, color=#0000FF) { }
                                       }
                                    }
                                 }
                              }
                              N:Cowl(angle=-40, effect=#F000) {
                                 N:Cowl(angle=160) {
                                    N:Cowl(angle=-158) { }
                                 }
                              }
                           }
                           W:Cowl(color=#0000FF) {
                              W:Cowl(color=#0000FF) {
                                 N:Cowl(angle=-50, color=#0000FF) {
                                    N:Cowl(angle=-50, color=#0000FF) {
                                       N:Cowl(angle=-50, color=#0000FF) {
                                          N:Cowl(angle=60, color=0) {
                                             N:Cowl(color=0) {
                                                N:Cowl(color=0) {
                                                   N:Cowl(color=0) {
                                                      N:Cowl(color=0) {
                                                         N:Cowl(color=0) {
                                                            N:Cowl(angle=-70, color=0, effect=#F000) {
                                                               N:Cowl(angle=140, effect=#F000) {
                                                                  N:Cowl(angle=110, color=0) {
                                                                     S:Cowl(angle=-50, color=#0000FF) {
                                                                        S:Cowl(angle=50, effect=#F000) {
                                                                           S:Cowl(angle=50, color=#0000FF) {
                                                                              S:Cowl(angle=-50) { }
                                                                           }
                                                                        }
                                                                     }
                                                                     W:Cowl(angle=-140, color=#0000FF) { }
                                                                  }
                                                               }
                                                            }
                                                            W:Cowl(angle=140, color=#0000FF) { }
                                                         }
                                                         W:Cowl(angle=140, color=#0000FF) { }
                                                      }
                                                      W:Cowl(angle=140, color=#0000FF) { }
                                                   }
                                                   W:Cowl(angle=120, color=0) {
                                                      W:Cowl(angle=30, color=0) {
                                                         N:Cowl(angle=90, color=0) { }
                                                      }
                                                      N:Cowl(angle=90, option=4, color=0) { }
                                                   }
                                                }
                                                W:Cowl(angle=120, color=0) {
                                                   W:Cowl(angle=30, color=0) { }
                                                }
                                             }
                                             W:Cowl(angle=120, color=0) {
                                                W:Cowl(angle=30, color=0) { }
                                                S:Cowl(angle=70, option=3, color=0) { }
                                             }
                                          }
                                          E:Cowl(angle=90, option=4, color=#0000FF) { }
                                       }
                                    }
                                 }
                              }
                              N:Cowl(angle=-10, color=#0000FF) {
                                 N:Cowl(angle=-60, color=#0000FF) {
                                    N:Cowl(color=#0000FF) {
                                       N:Cowl(angle=50, color=0, effect=#50FF) {
                                          N:Cowl(angle=-70, color=#0000FF) {
                                             N:Cowl(color=#0000FF) {
                                                N:Cowl(color=#0000FF) {
                                                   N:Cowl(angle=-90, color=#0000FF) {
                                                      N:Cowl(color=#0000FF) {
                                                         N:Cowl(angle=90, color=#C0C0C0) {
                                                            N:Cowl(color=#C0C0C0) {
                                                               N:Cowl(color=#C0C0C0) {
                                                                  N:Cowl(color=#C0C0C0) {
                                                                     N:Cowl(color=#C0C0C0) {
                                                                        N:Cowl(color=#C0C0C0) {
                                                                           N:Cowl(color=#C0C0C0) {
                                                                              N:Cowl(angle=-90, color=#0000FF) {
                                                                                 W:Cowl(color=#0000FF) {
                                                                                    S:Cowl(angle=-90, color=#0000FF) {
                                                                                       S:Cowl(color=#0000FF) {
                                                                                          S:Cowl(angle=-16, color=#0000FF) { }
                                                                                       }
                                                                                    }
                                                                                    W:Cowl(angle=-90, color=#0000FF) {
                                                                                       W:Cowl(option=4, color=#0000FF) { }
                                                                                    }
                                                                                 }
                                                                              }
                                                                           }
                                                                           N:Cowl(angle=15, effect=#F000) {
                                                                              N:Cowl(angle=-105) { }
                                                                           }
                                                                        }
                                                                        W:Cowl(angle=-90, option=4, color=#0000FF) { }
                                                                     }
                                                                     W:Cowl(angle=-50, color=#0000FF) {
                                                                        S:Cowl(color=#0000FF) {
                                                                           S:Cowl(color=#0000FF) {
                                                                              S:Cowl(color=#0000FF) { }
                                                                           }
                                                                        }
                                                                        N:Cowl(option=3, color=#0000FF) { }
                                                                     }
                                                                  }
                                                               }
                                                            }
                                                         }
                                                         W:Cowl(angle=-90, color=#0000FF) {
                                                            W:Cowl(color=#0000FF) {
                                                               W:Cowl(color=#0000FF) { }
                                                            }
                                                         }
                                                      }
                                                      W:Cowl(angle=-90, color=0, effect=#50FF) {
                                                         W:Cowl(color=0, effect=#50FF) {
                                                            W:Cowl(color=0, effect=#50FF) { }
                                                         }
                                                      }
                                                   }
                                                }
                                             }
                                          }
                                          W:Cowl(angle=-90, option=4, color=0, effect=#50FF) { }
                                       }
                                       W:Cowl(angle=-90, color=#0000FF) {
                                          N:Cowl(option=4, color=#0000FF) { }
                                          W:Cowl(option=3, color=#0000FF) { }
                                       }
                                       N:Cowl(angle=-150, effect=#F000) {
                                          N:Cowl(angle=-50, effect=#F000) {
                                             N:Cowl(angle=60, color=LIGHTS) {
                                                N:Cowl(angle=120, color=LIGHTS) { }
                                             }
                                          }
                                       }
                                    }
                                    W:Cowl(angle=-90, color=#0000FF) { }
                                 }
                                 W:Cowl(angle=-90, option=3, color=#0000FF) { }
                              }
                              N:Cowl(angle=-40, effect=#F000) {
                                 N:Cowl(angle=160) {
                                    N:Cowl(angle=-158) { }
                                 }
                              }
                           }
                        }
                        N:Cowl(angle=-60, color=#0000FF) {
                           N:Cowl(color=#0000FF) {
                              N:Cowl(angle=50, color=0, effect=#50FF) {
                                 N:Cowl(angle=-70, color=#0000FF) {
                                    N:Cowl(color=#0000FF) {
                                       N:Cowl(color=#0000FF) {
                                          N:Cowl(angle=-90, color=#0000FF) {
                                             N:Cowl(color=#0000FF) {
                                                N:Cowl(angle=90, color=#C0C0C0) {
                                                   N:Cowl(color=#C0C0C0) {
                                                      N:Cowl(color=#C0C0C0) {
                                                         N:Cowl(color=#C0C0C0) {
                                                            N:Cowl(color=#C0C0C0) {
                                                               N:Cowl(color=#C0C0C0) {
                                                                  N:Cowl(color=#C0C0C0) {
                                                                     N:Cowl(angle=-90, color=#0000FF) { }
                                                                     W:Cowl(angle=15, effect=#F000) {
                                                                        W:Cowl(angle=-105, color=#FF0000) { }
                                                                     }
                                                                     E:Cowl(angle=15, effect=#F000) {
                                                                        E:Cowl(angle=-105, color=#FF0000) { }
                                                                     }
                                                                  }
                                                                  W:Cowl(angle=15, effect=#F000) {
                                                                     W:Cowl(angle=-105) { }
                                                                  }
                                                                  N:Cowl(angle=15, effect=#F000) {
                                                                     N:Cowl(angle=-105, color=#FF0000) { }
                                                                  }
                                                                  E:Cowl(angle=15, effect=#F000) {
                                                                     E:Cowl(angle=-105) { }
                                                                  }
                                                               }
                                                               W:Cowl(angle=15, effect=#F000) {
                                                                  W:Cowl(angle=-105, color=#FF0000) { }
                                                               }
                                                               E:Cowl(angle=15, effect=#F000) {
                                                                  E:Cowl(angle=-105, color=#FF0000) { }
                                                               }
                                                            }
                                                            W:Cowl(angle=15, effect=#F000) {
                                                               W:Cowl(angle=-105) { }
                                                            }
                                                            E:Cowl(angle=15, effect=#F000) {
                                                               E:Cowl(angle=-105) { }
                                                            }
                                                         }
                                                         W:Cowl(angle=15, effect=#F000) {
                                                            W:Cowl(angle=-105, color=#FF0000) { }
                                                         }
                                                         E:Cowl(angle=15, effect=#F000) {
                                                            E:Cowl(angle=-105, color=#FF0000) { }
                                                         }
                                                      }
                                                      N:Cowl(angle=90, color=#0000FF) {
                                                         N:Cowl(angle=90, color=#0000FF) {
                                                            W:Cowl(angle=90, color=#0000FF) { }
                                                            N:Cowl(color=#0000FF) {
                                                               W:Cowl(angle=90, color=#0000FF) { }
                                                            }
                                                            E:Cowl(color=#0000FF) {
                                                               S:Cowl(angle=90, color=#0000FF) { }
                                                               E:Cowl(angle=90, color=#0000FF) { }
                                                               N:Cowl() {
                                                                  E:Cowl(angle=90, color=#0000FF) { }
                                                               }
                                                               N:Cowl(angle=-90, color=0) {
                                                                  N:Cowl(angle=90, color=0) {
                                                                     W:Cowl(angle=90, color=0) { }
                                                                     E:Cowl(angle=90, color=0) { }
                                                                  }
                                                               }
                                                            }
                                                         }
                                                      }
                                                      W:Cowl(angle=15, effect=#F000) {
                                                         W:Cowl(angle=-105) { }
                                                      }
                                                   }
                                                   W:Cowl(angle=15, effect=#F000) {
                                                      W:Cowl(angle=-105, color=#FF0000) { }
                                                   }
                                                }
                                             }
                                          }
                                       }
                                    }
                                 }
                              }
                           }
                        }
                     }
                  }
               }
            }
         }
      }
      S:Cowl(angle=-150, effect=#F000) {
         S:Cowl(angle=-100, color=0) { }
      }
      S:Frame(angle=90, option=1) {
         S:Weight(angle=-90) {
            N:Weight() {
               N:Weight(option=4) {
                  N:Weight(option=4) {
                     E:Frame() {
                        E:Frame() {
                           E:RudderF(angle=-TURN, option=1) {
                              W:Wheel(angle=90, power=ENGINE, brake=BRAKES, option=1, effect=5) { }
                           }
                        }
                     }
                     W:Frame() {
                        W:Frame() {
                           W:RudderF(angle=-TURN, option=1) {
                              E:Wheel(angle=90, power=-ENGINE, brake=BRAKES, option=1, effect=5) { }
                           }
                        }
                     }
                  }
               }
               N:TrimF(angle=90, option=1) {
                  N:RudderF(angle=-90, option=1) {
                     E:Chip(angle=180) {
                        E:Frame(option=1) {
                           E:Chip() {
                              E:Chip() {
                                 E:Chip() {
                                    E:Chip() { }
                                 }
                              }
                           }
                        }
                     }
                  }
               }
            }
            S:Weight() {
               S:Weight() {
                  S:Weight() {
                     S:Weight() {
                        S:Weight() {
                           S:Weight() {
                              W:Frame() {
                                 W:Frame() {
                                    W:Wheel(angle=90, power=-ENGINE, brake=HBRAKES, option=1, effect=5) { }
                                 }
                              }
                              E:Frame() {
                                 E:Frame() {
                                    E:Wheel(angle=90, power=ENGINE, brake=HBRAKES, option=1, effect=5) { }
                                 }
                              }
                              S:Frame(angle=-90) {
                                 S:TrimF(angle=dish) {
                                    S:Frame(color=#0000FF) {
                                       S:Frame(angle=-DISH2, option=1) {
                                          N:TrimF(option=1) {
                                             S:Cowl(angle=70) {
                                                S:Cowl(angle=-20) {
                                                   S:Cowl(angle=-10) { }
                                                }
                                             }
                                             S:Cowl(angle=-70) {
                                                S:Cowl(angle=20) {
                                                   S:Cowl(angle=10) { }
                                                }
                                             }
                                             S:Cowl() {
                                                S:Cowl() { }
                                             }
                                          }
                                          N:TrimF(angle=20, option=1) {
                                             S:Cowl(angle=70) {
                                                S:Cowl(angle=-20) {
                                                   S:Cowl(angle=-10) { }
                                                }
                                             }
                                             S:Cowl(angle=-70) {
                                                S:Cowl(angle=20) {
                                                   S:Cowl(angle=10) { }
                                                }
                                             }
                                          }
                                          N:TrimF(angle=40, option=1) {
                                             S:Cowl(angle=70) {
                                                S:Cowl(angle=-20) {
                                                   S:Cowl(angle=-10) { }
                                                }
                                             }
                                             S:Cowl(angle=-70) {
                                                S:Cowl(angle=20) {
                                                   S:Cowl(angle=10) { }
                                                }
                                             }
                                          }
                                          N:TrimF(angle=60, option=1) {
                                             S:Cowl(angle=70) {
                                                S:Cowl(angle=-20) {
                                                   S:Cowl(angle=-10) { }
                                                }
                                             }
                                             S:Cowl(angle=-70) {
                                                S:Cowl(angle=20) {
                                                   S:Cowl(angle=10) { }
                                                }
                                             }
                                          }
                                          N:TrimF(angle=80, option=1) {
                                             S:Cowl(angle=70) {
                                                S:Cowl(angle=-20) {
                                                   S:Cowl(angle=-10) { }
                                                }
                                             }
                                             S:Cowl(angle=-70) {
                                                S:Cowl(angle=20) {
                                                   S:Cowl(angle=10) { }
                                                }
                                             }
                                          }
                                       }
                                       S:TrimF(angle=-50, option=1) {
                                          N:Cowl(angle=25, color=#0000FF) {
                                             N:Cowl(color=#0000FF) {
                                                N:Cowl(color=#0000FF) { }
                                             }
                                          }
                                          N:Cowl(angle=-25, effect=#F000) {
                                             N:Cowl(option=4, color=#0000FF, effect=#F000) {
                                                N:Cowl(color=#0000FF) { }
                                             }
                                          }
                                       }
                                       S:TrimF(angle=-100, option=1) {
                                          N:Cowl(angle=25, color=#0000FF, effect=#F000) {
                                             N:Cowl(color=#0000FF) {
                                                N:Cowl(color=#0000FF) { }
                                             }
                                          }
                                          N:Cowl(angle=-25, color=#0000FF, effect=#F000) {
                                             N:Cowl(color=#0000FF) {
                                                N:Cowl(color=#0000FF) { }
                                             }
                                          }
                                       }
                                       S:TrimF(angle=50, option=1) {
                                          N:Cowl(angle=25, color=#0000FF) {
                                             N:Cowl(color=#0000FF) {
                                                N:Cowl(color=#0000FF) { }
                                             }
                                          }
                                          N:Cowl(angle=-25, color=#0000FF, effect=#F000) {
                                             N:Cowl(color=#0000FF, effect=#F000) {
                                                N:Cowl(color=#0000FF) { }
                                             }
                                          }
                                       }
                                       S:Frame(angle=-DISH2) {
                                          N:TrimF(angle=90, option=1) {
                                             S:Cowl() {
                                                S:Cowl() { }
                                             }
                                          }
                                          N:TrimF(angle=100, option=1) {
                                             S:Cowl(angle=70) {
                                                S:Cowl(angle=-20) {
                                                   S:Cowl(angle=-10) { }
                                                }
                                             }
                                             S:Cowl(angle=-70) {
                                                S:Cowl(angle=20) {
                                                   S:Cowl(angle=10) { }
                                                }
                                             }
                                          }
                                          N:TrimF(angle=120, option=1) {
                                             S:Cowl(angle=70) {
                                                S:Cowl(angle=-20) {
                                                   S:Cowl(angle=-10) { }
                                                }
                                             }
                                             S:Cowl(angle=-70) {
                                                S:Cowl(angle=20) {
                                                   S:Cowl(angle=10) { }
                                                }
                                             }
                                          }
                                          N:TrimF(angle=140, option=1) {
                                             S:Cowl(angle=70) {
                                                S:Cowl(angle=-20) {
                                                   S:Cowl(angle=-10) { }
                                                }
                                             }
                                             S:Cowl(angle=-70) {
                                                S:Cowl(angle=20) {
                                                   S:Cowl(angle=10) { }
                                                }
                                             }
                                          }
                                          N:TrimF(angle=160, option=1) {
                                             S:Cowl(angle=70) {
                                                S:Cowl(angle=-20) {
                                                   S:Cowl(angle=-10) { }
                                                }
                                             }
                                             S:Cowl(angle=-70) {
                                                S:Cowl(angle=20) {
                                                   S:Cowl(angle=10) { }
                                                }
                                             }
                                          }
                                       }
                                       S:Cowl(angle=155, color=#0000FF) {
                                          S:Cowl(color=#0000FF) {
                                             S:Cowl(color=#0000FF) { }
                                          }
                                       }
                                       S:Cowl(angle=-155, color=#0000FF, effect=#F000) {
                                          S:Cowl(color=#0000FF, effect=#F000) {
                                             S:Cowl(color=#0000FF) { }
                                          }
                                       }
                                    }
                                 }
                              }
                           }
                        }
                     }
                  }
               }
            }
         }
      }
   }
}
Lua
{require("Juz/index.lua")

draw = {}
   draw.set = {}
   draw.draw = {}
   draw.l = {}
   draw.pla = {}
col = {}
data = {}
   data.c = {}
   data.fr = {}
   data.screen = {}
   data.pla = {}
ui = {}
   ui.rot = {}
   ui.tra = {}
      ui.tra.c = {}
      ui.tra.d = {}
   ui.ran = {}
   ui.pla = {}
opt = {}

function OnInit() init() end
function OnReset() init() end
function init()
   initindex()
   
   _ZOOM(1)

   col.misc = line.rgb(255,0,0)
   col.lat = line.rgb(204,204,204)
   col.ran = line.rgb(255,127,0)
   col.n = line.rgb(255,255,255)
   col.pla = {}
   col.pla.main = line.rgb(255,255,255)
   col.uipla = line.rgb(255,255,0)

   data.fr.y = 1
   data.range = 500
   data.ey = 0
   data.c = {x=0,y=0}

   ui.mode = nil
   ui.rot.a0 = 0
   ui.tra.c = {x0=0,y0=0}
   ui.pla.c = nil

   opt.lattxt = {}
   opt.lattxt.t = 1
   opt.mouse = {}
   opt.mouse.t = 0
end

draw.set.lat = function()
   draw.l.lat = {}
   
   for i = math.ceil((-data.c.x-len2(data.fr.x,data.fr.y)*data.range)/1000)*1000,math.floor((-data.c.x+len2(data.fr.x,data.fr.y)*data.range)/1000)*1000,1000 do
      local tmp = (-i-data.c.x)/data.range
      table.insert(draw.l.lat,line.move(0,0,0,tmp,-len2(data.fr.x,data.fr.y),0))
      table.insert(draw.l.lat,line.line(0,0,0,tmp,len2(data.fr.x,data.fr.y),0,col.lat))
      if opt.lattxt.t == 0 then
         for j = math.ceil((-data.c.y-len2(data.fr.x,data.fr.y)*data.range)/1000)*1000,math.floor((-data.c.y+len2(data.fr.x,data.fr.y)*data.range)/1000)*1000,1000 do
            local tmp1 = (-j-data.c.y)/data.range
            line.insert(draw.l.lat,line.extract(line.text.set(20/data.range+tmp,-45/data.range+tmp1,0,"{"..(-i/1000)..","..(j/1000).."}",50/data.range,"left",col.lat)))
         end
      end
   end
   for i = math.ceil((-data.c.y-len2(data.fr.x,data.fr.y)*data.range)/1000)*1000,math.floor((-data.c.y+len2(data.fr.x,data.fr.y)*data.range)/1000)*1000,1000 do
      local tmp = (-i-data.c.y)/data.range
      table.insert(draw.l.lat,line.move(0,0,0,-len2(data.fr.x,data.fr.y),tmp,0))
      table.insert(draw.l.lat,line.line(0,0,0,len2(data.fr.x,data.fr.y),tmp,0,col.lat))
   end
   
   draw.l.lat = line.rotate(-data.ey,draw.l.lat)
end

draw.set.misc = function()
   draw.l.misc = {}
   
   table.insert(draw.l.misc,line.move(0,0,0,0,0.04,0))
   table.insert(draw.l.misc,line.line(0,0,0,-0.015,-0.015,0,col.misc))
   table.insert(draw.l.misc,line.line(0,0,0,0.015,-0.015,0,col.misc))
   table.insert(draw.l.misc,line.line(0,0,0,0,0.04,0,col.misc))
   
   local d = {}
   if abs(cycle(data.ey,-pi/2,pi/2)) < atan2(data.fr.x-0.05,data.fr.y-0.05) then
      d.x = sin(-data.ey)*((1-0.05)/cos(-data.ey))*sgn(cos(-data.ey))
      d.y = cos(-data.ey)*((1-0.05)/cos(-data.ey))*sgn(cos(-data.ey))
   else
      d.x = sin(-data.ey)*((data.fr.x-0.05)/sin(-data.ey))*sgn(sin(-data.ey))
      d.y = cos(-data.ey)*((data.fr.x-0.05)/sin(-data.ey))*sgn(sin(-data.ey))
   end
   d.x1 = d.x/((0.05+len2(d.x,d.y))/len2(d.x,d.y))
   d.y1 = d.y/((0.05+len2(d.x,d.y))/len2(d.x,d.y))
   d.x2 = d.x/((0.15+len2(d.x,d.y))/len2(d.x,d.y))
   d.y2 = d.y/((0.15+len2(d.x,d.y))/len2(d.x,d.y))
   line.insert(draw.l.misc,line.add(d.x,d.y,0,line.rotate(-data.ey,line.extract(line.text.set(0,0,0,"N",0.06,"centre",col.n)))))
   line.insert(draw.l.misc,{line.move(d.x1,d.y1,0,0,0,0),line.line(d.x2,d.y2,0,0,0,0,col.n)})
end

draw.set.ran = function()
   draw.l.ran = {}
   
   local tmp = ui.ran.d*0.4
   
   table.insert(draw.l.ran,line.move(-data.screen.side,tmp,0,0.165,0.01,0))
   table.insert(draw.l.ran,line.line(-data.screen.side,tmp,0,0.055,0.01,0,col.ran))
   table.insert(draw.l.ran,line.line(-data.screen.side,tmp,0,0.055,-0.01,0,col.ran))
   table.insert(draw.l.ran,line.line(-data.screen.side,tmp,0,0.165,-0.01,0,col.ran))
   table.insert(draw.l.ran,line.line(-data.screen.side,tmp,0,0.165,0.01,0,col.ran))
   
   table.insert(draw.l.ran,line.move(-data.screen.side,0,0,0.075,tmp+0.01,0))
   table.insert(draw.l.ran,line.line(-data.screen.side,0,0,0.075,0.41,0,col.ran))
   table.insert(draw.l.ran,line.line(-data.screen.side,0,0,0.145,0.41,0,col.ran))
   table.insert(draw.l.ran,line.line(-data.screen.side,0,0,0.145,tmp+0.01,0,col.ran))
   table.insert(draw.l.ran,line.move(-data.screen.side,0,0,0.11,tmp+0.01,0))
   table.insert(draw.l.ran,line.line(-data.screen.side,0,0,0.11,0.41,0,col.ran))
   
   table.insert(draw.l.ran,line.move(-data.screen.side,0,0,0.075,tmp-0.01,0))
   table.insert(draw.l.ran,line.line(-data.screen.side,0,0,0.075,-0.41,0,col.ran))
   table.insert(draw.l.ran,line.line(-data.screen.side,0,0,0.145,-0.41,0,col.ran))
   table.insert(draw.l.ran,line.line(-data.screen.side,0,0,0.145,tmp-0.01,0,col.ran))
   table.insert(draw.l.ran,line.move(-data.screen.side,0,0,0.11,tmp-0.01,0))
   table.insert(draw.l.ran,line.line(-data.screen.side,0,0,0.11,-0.41,0,col.ran))
   
   if opt.lattxt.t == 0 then
      line.insert(draw.l.ran,line.extract(line.text.set(-data.screen.side+0.075,-0.45,0,"RANGE: "..string.format("%.1f",(data.range/1000*2)^2*data.fr.x).."KM^2.",0.05,"left",col.ran)))
   end
end

draw.set.pla = function()
   draw.l.pla = {}

   for i = 0,_PLAYERS()-1 do
      data.pla[i] = noisec(i)
      data.pla[i].col = _PLAYERCOLOR(i)
      data.pla[i].name = _PLAYERNAME(i)
      data.pla[i].chips = _PLAYERCHIPS(i)
      data.pla[i].arms = _PLAYERARMS(i)
      data.pla[i].crushes = _PLAYERCRUSHES(i)
      data.pla[i].resets = _PLAYERRESETS(i)+_PLAYERINITS(i)
      data.pla[i].d = {}
      
      col.pla[i] = data.pla[i].col
   end
   
   for i = 0,_PLAYERS()-1 do
      data.pla[i].d.x0 = -(data.pla[i].x+data.c.x)/data.range
      data.pla[i].d.y0 = -(data.pla[i].z+data.c.y)/data.range
      
      data.pla[i].d.x = -sin(data.ey)*data.pla[i].d.y0+cos(data.ey)*data.pla[i].d.x0
      data.pla[i].d.y = sin(data.ey)*data.pla[i].d.x0+cos(data.ey)*data.pla[i].d.y0
   end
   
   for i = 0,_PLAYERS()-1 do
      if i ~= _PLAYERMYNUM() then
         table.insert(draw.l.pla,line.move(data.pla[i].d.x,data.pla[i].d.y,0,0.02,0.02,0))
         table.insert(draw.l.pla,line.line(data.pla[i].d.x,data.pla[i].d.y,0,-0.02,0.02,0,col.pla[i]))
         table.insert(draw.l.pla,line.line(data.pla[i].d.x,data.pla[i].d.y,0,-0.02,-0.02,0,col.pla[i]))
         table.insert(draw.l.pla,line.line(data.pla[i].d.x,data.pla[i].d.y,0,0.02,-0.02,0,col.pla[i]))
         table.insert(draw.l.pla,line.line(data.pla[i].d.x,data.pla[i].d.y,0,0.02,0.02,0,col.pla[i]))
         table.insert(draw.l.pla,line.move(data.pla[i].d.x,data.pla[i].d.y,0,0.01,0.01,0))
         table.insert(draw.l.pla,line.line(data.pla[i].d.x,data.pla[i].d.y,0,-0.01,-0.01,0,col.pla.main))
         table.insert(draw.l.pla,line.move(data.pla[i].d.x,data.pla[i].d.y,0,-0.01,0.01,0))
         table.insert(draw.l.pla,line.line(data.pla[i].d.x,data.pla[i].d.y,0,0.01,-0.01,0,col.pla.main))
      else
         table.insert(draw.l.pla,line.move(data.pla[i].d.x,data.pla[i].d.y,0,0.015,0.015,0))
         table.insert(draw.l.pla,line.line(data.pla[i].d.x,data.pla[i].d.y,0,-0.015,-0.015,0,col.pla.main))
         table.insert(draw.l.pla,line.move(data.pla[i].d.x,data.pla[i].d.y,0,-0.015,0.015,0))
         table.insert(draw.l.pla,line.line(data.pla[i].d.x,data.pla[i].d.y,0,0.015,-0.015,0,col.pla.main))
         table.insert(draw.l.pla,line.move(data.pla[i].d.x,data.pla[i].d.y,0,0,0.015,0))
         table.insert(draw.l.pla,line.line(data.pla[i].d.x,data.pla[i].d.y,0,0,-0.015,0,col.pla[i]))
         table.insert(draw.l.pla,line.move(data.pla[i].d.x,data.pla[i].d.y,0,-0.015,0,0))
         table.insert(draw.l.pla,line.line(data.pla[i].d.x,data.pla[i].d.y,0,0.015,0,0,col.pla[i]))
      end
   end
end

draw.draw = function(t)
   line[2].draw(t)
end

ui.pla.f = function(p)
   draw.l.uipla = {}

   table.insert(draw.l.uipla,line.move(data.screen.side,1,0,-0.6,0,0))
   table.insert(draw.l.uipla,line.line(data.screen.side,1,0,-0.6,-0.43,0,col.uipla))
   table.insert(draw.l.uipla,line.line(data.screen.side,1,0,0,-0.43,0,col.uipla))
   line.insert(draw.l.uipla,line.extract(line.text.set(data.screen.side-0.3,1-0.11,0,string.upper(data.pla[p].name),0.05,"centre",col.uipla)))
   line.insert(draw.l.uipla,line.extract(line.text.set(data.screen.side-0.55,1-0.18,0,"CHIPS:",0.04,"left",col.uipla)))
   line.insert(draw.l.uipla,line.extract(line.text.set(data.screen.side-0.05,1-0.18,0,string.format("%.0f",data.pla[p].chips),0.04,"right",col.uipla)))
   line.insert(draw.l.uipla,line.extract(line.text.set(data.screen.side-0.55,1-0.24,0,"ARMS:",0.04,"left",col.uipla)))
   line.insert(draw.l.uipla,line.extract(line.text.set(data.screen.side-0.05,1-0.24,0,string.format("%.0f",data.pla[p].arms),0.04,"right",col.uipla)))
   line.insert(draw.l.uipla,line.extract(line.text.set(data.screen.side-0.55,1-0.30,0,"DEATHS:",0.04,"left",col.uipla)))
   line.insert(draw.l.uipla,line.extract(line.text.set(data.screen.side-0.05,1-0.30,0,string.format("%.0f",data.pla[p].crushes),0.04,"right",col.uipla)))
   line.insert(draw.l.uipla,line.extract(line.text.set(data.screen.side-0.55,1-0.36,0,"RESETS:",0.04,"left",col.uipla)))
   line.insert(draw.l.uipla,line.extract(line.text.set(data.screen.side-0.05,1-0.36,0,string.format("%.0f",data.pla[p].resets),0.04,"right",col.uipla)))
end

function UI()
   if m.mu == 1 and ui.mode == "rot" then ui.mode = nil end
   if m.ru == 1 and ui.mode == "tra" then ui.mode = nil end
   if m.lu == 1 and ui.mode == "ran" then ui.mode = nil end
   if ui.mode == "pla" then
      if m.ld == 1 or m.md == 1 or m.rd == 1 then
         ui.mode,ui.pla.c = nil,nil
      end
   end
   
   if m.md == 1 and ui.mode == nil then
      ui.mode = "rot"
   end
   if m.rd == 1 and ui.mode == nil then
      ui.mode = "tra"
   end
   if m.ld == 1 and ui.mode == nil then
      if m.x < -data.screen.side+0.15 and m.x > -data.screen.side+0.07 then
         ui.mode = "ran"
      else
         for i = 0,_PLAYERS()-1 do
            if ui.mode == nil and m.x < data.pla[i].d.x+0.02 and m.x > data.pla[i].d.x-0.02 and m.y < data.pla[i].d.y+0.02 and m.y > data.pla[i].d.y-0.02 then
               ui.mode = "pla"
               ui.pla.c = i
            end
         end
      end
   end
   if ui.mode == "rot" then
      ui.rot.a = atan2(m.x,m.y)
      ui.rot.d = ui.rot.a-ui.rot.a0
      ui.rot.a0 = ui.rot.a
   else
      ui.rot.d = 0
      ui.rot.a = atan2(m.x,m.y)
      ui.rot.a0 = ui.rot.a
   end
   if ui.mode == "tra" then
      ui.tra.c.x = m.x
      ui.tra.c.y = m.y
      ui.tra.d.x = ui.tra.c.x-ui.tra.c.x0
      ui.tra.d.y = ui.tra.c.y-ui.tra.c.y0
      ui.tra.c.x0 = ui.tra.c.x
      ui.tra.c.y0 = ui.tra.c.y
   else
      ui.tra.d.x,ui.tra.d.y = 0,0
      ui.tra.c.x,ui.tra.c.y = m.x,m.y
      ui.tra.c.x0,ui.tra.c.y0 = ui.tra.c.x,ui.tra.c.y
   end
   if ui.mode == "ran" then
      ui.ran.d = limit(m.y,-0.4,0.4)/0.4
   else
      ui.ran.d = 0
   end
   if ui.mode == "pla" then
      ui.pla.f(ui.pla.c)
      draw.draw(draw.l.uipla)
   end
   
   data.ey = cycle(data.ey-ui.rot.d,-pi,pi)
   data.c.x = data.c.x-(cos(data.ey)*ui.tra.d.x+sin(data.ey)*ui.tra.d.y)*data.range
   data.c.y = data.c.y-(-sin(data.ey)*ui.tra.d.x+cos(data.ey)*ui.tra.d.y)*data.range
   data.range = math.max(data.range+(ui.ran.d*4000/(_FPS())),1)
end

function options()
   opt.lattxt.k = _KEYDOWN(7)
   opt.lattxt.t = mod(opt.lattxt.t+opt.lattxt.k,2)
   if opt.lattxt.t == 1 then opt.lattxt.txt = "Off" else opt.lattxt.txt = "On - Large CPU Drain" end
   
   opt.mouse.k = _KEYDOWN(8)
   opt.mouse.t = mod(opt.mouse.t+opt.mouse.k,2)
   if opt.mouse.t == 1 then opt.mouse.txt = "Off" else opt.mouse.txt = "On" end
end

function dow()
ENGINE=ENGINE+2500*(_KEY(0)-_KEY(1))
TURN=TURN+2*(_KEY(2)-_KEY(3))
BRAKES=BRAKES+2500*(_KEY(4)+_KEY(5))
HBRAKES=HBRAKES+5000*(_KEY(5))
if RADARSWITCH==0 then
DISH = animate(DISH,0,2)
DISH2=DISH2-5
end
if RADARSWITCH==1 then
if DISH>=180 then DISH=-180 end
if DISH<=-180 then DISH=180 end
DISH=DISH-2
DISH2=DISH2+5
end
end
function main()
RADARSWITCH=math.mod(RADARSWITCH+_KEYDOWN(16),2)
if RADARSWITCH==1 and DISH2>=90 then
   if opt.mouse.t == 0 then
      m = mouseout(m)
   else
      m = {}
      m.x,m.y = 0,0
      m.l,m.ld,m.lu = 0,0,0
      m.m,m.md,m.mu = 0,0,0
      m.r,m.rd,m.ru = 0,0,0
   end
   
   data.screen.side = _WIDTH()/_HEIGHT()
   data.fr.x = data.screen.side

   out(2,"[A] = Toggle Text (",opt.lattxt.txt,").  [S] = Toggle Mouse (",opt.mouse.txt,").")
   out(3,"[Mouse L] = Selector (Player Info or Range).  [Mouse M] = Rotate.  [Mouse R] = Translate.")
   
   options()
   
   UI()

   draw.set.lat()
   draw.set.misc()
   draw.set.ran()
   draw.set.pla()
   
   draw.draw(draw.l.lat)
   draw.draw(draw.l.misc)
   draw.draw(draw.l.ran)
   draw.draw(draw.l.pla)
end
   out(0,"'Radar', by Juz. , Modified by Kedji")
   if DISH2>=90 then    out(1,"Radar is active, Press E to deactivate.")
   else
   out(1,"Radar is inactive, Press E to activate.")
   end
   dow()
end}


Am I missing anything?


Last edited by Runner on Thu Feb 10, 2011 7:08 am; edited 1 time in total (Reason for editing : Errors)
Timothy Ashtön
Timothy Ashtön
Walker
Walker

Posts : 289
Join date : 2010-07-17
Age : 31
Location : Ontario

http://wildfrontierguidecomplete.blogspot.com/

Back to top Go down

Juz Radar + Kedji Truck Mod Empty Re: Juz Radar + Kedji Truck Mod

Post by supershade Wed Feb 09, 2011 9:15 pm

Thanks for this...it says it is unable to load lua script juz/index. Fixed the problem.


Last edited by supershade on Wed Feb 09, 2011 9:50 pm; edited 1 time in total (Reason for editing : Fixed)
supershade
supershade
Hover
Hover

Posts : 107
Join date : 2011-02-07
Age : 28
Location : Norman,Oklahoma

Back to top Go down

Juz Radar + Kedji Truck Mod Empty Re: Juz Radar + Kedji Truck Mod

Post by Timothy Ashtön Thu Feb 10, 2011 7:04 am

Please go here then Shade. ===>> Juz's Index Library

You must have the folder of Lua's in the same folder of the chips needing Juz Librabries. So download and extract to the file containing the Truck.

Sorry forgot to mention that. Fix'd
Timothy Ashtön
Timothy Ashtön
Walker
Walker

Posts : 289
Join date : 2010-07-17
Age : 31
Location : Ontario

http://wildfrontierguidecomplete.blogspot.com/

Back to top Go down

Juz Radar + Kedji Truck Mod Empty Re: Juz Radar + Kedji Truck Mod

Post by supershade Thu Feb 10, 2011 12:33 pm

I made a SET_Lua path and forgot about it...my bad,I feel like such a newb...Which I am except I know some script so look out for a car made by me sometime,k?
supershade
supershade
Hover
Hover

Posts : 107
Join date : 2011-02-07
Age : 28
Location : Norman,Oklahoma

Back to top Go down

Juz Radar + Kedji Truck Mod Empty Re: Juz Radar + Kedji Truck Mod

Post by Timothy Ashtön Thu Feb 10, 2011 6:56 pm

Checking right now. (Look at time of post)
Timothy Ashtön
Timothy Ashtön
Walker
Walker

Posts : 289
Join date : 2010-07-17
Age : 31
Location : Ontario

http://wildfrontierguidecomplete.blogspot.com/

Back to top Go down

Juz Radar + Kedji Truck Mod Empty Re: Juz Radar + Kedji Truck Mod

Post by supershade Thu Feb 10, 2011 7:03 pm

k.
supershade
supershade
Hover
Hover

Posts : 107
Join date : 2011-02-07
Age : 28
Location : Norman,Oklahoma

Back to top Go down

Juz Radar + Kedji Truck Mod Empty Re: Juz Radar + Kedji Truck Mod

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum