This repository was archived by the owner on Aug 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 439c6ff
Showing
4 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# waterworld | ||
Playing around with runtime water manipulation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Citizen.CreateThread(function() | ||
-- Load the water.xml file | ||
local success = LoadWaterFromPath('waterworld', 'water.xml') | ||
end) | ||
AddEventHandler("onResourceStop", function(resource) | ||
-- Reset to default water.xml | ||
ResetWater() | ||
end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
fx_version 'cerulean' | ||
game 'gta5' | ||
author 'InfinityNL' | ||
description 'Loading water.xml with a tsunami effect' | ||
version '1.0.0' | ||
lua54 'yes' | ||
client_scripts { | ||
'client.lua' | ||
} | ||
files { | ||
'water.xml', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
|
||
<?xml version="1.0" encoding = "UTF-8"?> | ||
<WaterData> | ||
<WaterQuads> | ||
<Item> | ||
<minX value="-12000" /> | ||
<maxX value="12000" /> | ||
<minY value="-12000" /> | ||
<maxY value="12000" /> | ||
<Type value="0" /> | ||
<IsInvisible value="false" /> | ||
<HasLimitedDepth value="false" /> | ||
<z value="29.0" /> <!-- Water height --> | ||
<a1 value="26" /> | ||
<a2 value="26" /> | ||
<a3 value="26" /> | ||
<a4 value="26" /> | ||
<NoStencil value="false" /> | ||
</Item> | ||
</WaterQuads> | ||
<WaveQuads> | ||
<Item> | ||
<minX value="-12000" /> | ||
<maxX value="12000" /> | ||
<minY value="-12000" /> | ||
<maxY value="12000" /> | ||
<Amplitude value="120" /> <!--Wave height--> | ||
<XDirection value="0.9" /> | ||
<YDirection value="-0.2" /> | ||
</Item> | ||
<CalmingQuads> | ||
<Item> | ||
<minX value="-12000" /> | ||
<maxX value="12000" /> | ||
<minY value="-12000" /> | ||
<maxY value="12000" /> | ||
<fDampening value="0.01" /> | ||
</Item> | ||
</CalmingQuads> | ||
</WaveQuads> | ||
</WaterData> |