Jump to content

Asilar

Member
  • Posts

    19
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Asilar got a reaction from trombonaught in Adjustable Helicopter function.   
    Hi,
     
    With alibuyuktatli we managed to create a fake helicopter function.
     
    What it does
    When you call the function, it simulate an Helicopter by calling the sound, faking arrival/hovering/leaving with incremental/decremental sound volume, and using addSound command to call the zombies around. The Fake Helicopter function needs a (player) argument, so you can call the Helicopter right on top of chosen player !
     
    What for ?
    For example, if you call this function in a OnCreate function in a recipe, the crafting of the recipe will call this fake Helicopter on the player who crafted the recipe (and not at a random player location).
    Here is a demo of the function in a video : https://drive.google.com/file/d/1dwrieE7Archble93cpB--_8zS1JC-JT6/view?usp=sharing
    In this video, the function is called with an OnCreate function added in the custom recipe.
     
    Can I use it in my own mod ?
    We share the code for the coders community, feel free to use ! But please leave the credits.
     
    How I use it ?
    All is explained in the .lua file with the credits in the first lines. If you have trouble using it, feel free to ask here or in PM.
     
    Who coded that ?
    All credits of the code to alibuyuktatli !
     
    Other credits
    Some of the icons/spites you can see in the video are used with the courtesy of Hydrocraft Mod.
    fakeheli.lua
  2. Like
    Asilar got a reaction from RedPanda33 in Vehicle Dashboard - Where is the UI sprite/texture located?   
    You can use TileZed to look inside a .pack file. You can also use it to make your own .pack files. You can also exctract the pngs from a .pack file. But, you cannot modify a .pack file.
    It's in UI2.pack that you can find the cardashboard image.
  3. Spiffo
    Asilar got a reaction from Ellena1998 in How to embed a video in a post ?   
    Hi,
     
    I struggle to embed a video into a post on those forums. It's not a Youtube vidéo but a mp4 I uploaded and shared in google drive. I can have a html tag with <iframes></iframes> but it doesn't work at all.
    Any hint?

    Thanks a lot !
  4. Spiffo
    Asilar got a reaction from Nebula in How do I get the current weather data?   
    Hi,
     
    I think what you are looking for is hidden in java code.
    Digging a little in the code, I found stuff in : zombie/iso/weather.
    For example, il zombie/iso/weather/ClimateManager.class I found this :
    (I don't know how to add a hidden/spoiler thing, sorry...)
    public float getAirMass() { return this.airMass; } public float getAirMassDaily() { return this.airMassDaily; } public float getAirMassTemperature() { return this.airMassTemperature; } public float getDayLightStrength() { return this.dayLightStrength.finalValue; } public float getNightStrength() { return this.nightStrength.finalValue; } public float getDayMeanTemperature() { return this.currentDay.season.getDayMeanTemperature(); } public float getTemperature() { return this.temperature.finalValue; } public float getBaseTemperature() { return this.baseTemperature; } public float getSnowStrength() { return this.snowStrength; } public boolean getPrecipitationIsSnow() { return this.precipitationIsSnow.finalValue; } public float getPrecipitationIntensity() { return this.precipitationIntensity.finalValue; } public float getFogIntensity() { return this.fogIntensity.finalValue; } public float getWindIntensity() { return this.windIntensity.finalValue; } public float getWindAngleIntensity() { return this.windAngleIntensity.finalValue; } public float getWindPower() { return this.windPower; } public float getWindspeedKph() { return this.windPower * 120.0F; } public float getCloudIntensity() { return this.cloudIntensity.finalValue; } public float getAmbient() { return this.ambient.finalValue; } public float getViewDistance() { return this.viewDistance.finalValue; } public boolean isRaining() { return (getPrecipitationIntensity() > 0.0F && !getPrecipitationIsSnow()); } public float getRainIntensity() { return isRaining() ? getPrecipitationIntensity() : 0.0F; } Hope it will help !
  5. Like
    Asilar got a reaction from Nebula in Adjustable Helicopter function.   
    Hi,
     
    With alibuyuktatli we managed to create a fake helicopter function.
     
    What it does
    When you call the function, it simulate an Helicopter by calling the sound, faking arrival/hovering/leaving with incremental/decremental sound volume, and using addSound command to call the zombies around. The Fake Helicopter function needs a (player) argument, so you can call the Helicopter right on top of chosen player !
     
    What for ?
    For example, if you call this function in a OnCreate function in a recipe, the crafting of the recipe will call this fake Helicopter on the player who crafted the recipe (and not at a random player location).
    Here is a demo of the function in a video : https://drive.google.com/file/d/1dwrieE7Archble93cpB--_8zS1JC-JT6/view?usp=sharing
    In this video, the function is called with an OnCreate function added in the custom recipe.
     
    Can I use it in my own mod ?
    We share the code for the coders community, feel free to use ! But please leave the credits.
     
    How I use it ?
    All is explained in the .lua file with the credits in the first lines. If you have trouble using it, feel free to ask here or in PM.
     
    Who coded that ?
    All credits of the code to alibuyuktatli !
     
    Other credits
    Some of the icons/spites you can see in the video are used with the courtesy of Hydrocraft Mod.
    fakeheli.lua
×
×
  • Create New...