-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
17 changed files
with
204 additions
and
166 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 |
---|---|---|
@@ -1,10 +1,13 @@ | ||
.git | ||
Gamefilemod_src | ||
.github | ||
Cache | ||
GamefileMod_src | ||
.gitattributes | ||
.gitignore | ||
.build | ||
dist | ||
Build.bat | ||
Workshop description.bb | ||
description_build.json | ||
description.json | ||
preview source.xcf | ||
install.log |
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
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,48 @@ | ||
name: Publish | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
name: Push to Steam Workshop | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Copy to /dist | ||
run: rsync -av --exclude-from="./.build/buildexclude" . ./dist | ||
|
||
- name: Add files to Github release | ||
env: | ||
GITHUB_CONTEXT: ${{ toJSON(github) }} | ||
run: | | ||
echo '{"version": "${{ github.event.release.tag_name }}"}' > ./dist/version.json | ||
(cd ./dist && zip -r ../release.zip .) | ||
echo "$GITHUB_CONTEXT" | ||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./release.zip | ||
asset_name: ${{ github.event.repository.name }}-release.zip | ||
asset_content_type: application/zip | ||
|
||
# Upload to Steam Workshop | ||
- name: Upload to Steam Workshop | ||
uses: arma-actions/workshop-upload@v1 | ||
with: | ||
appId: '387990' | ||
itemId: '2143988698' # Id of item to update | ||
contentPath: 'dist' | ||
changelog: "[b]${{ github.event.release.name }}[/b] (${{ github.event.release.tag_name }})\n\n${{ github.event.release.body }}\n\n${{ github.event.release.html_url }}" | ||
env: | ||
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }} | ||
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }} |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
|
||
Cache/ | ||
install.log | ||
dist/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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 |
---|---|---|
@@ -1,96 +1,4 @@ | ||
dofile( "$GAME_DATA/Scripts/game/BasePlayer.lua" ) | ||
|
||
CreativePlayer = class( nil ) | ||
|
||
function CreativePlayer.server_onCreate( self ) | ||
self.sv = {} | ||
self:sv_init() | ||
end | ||
|
||
function CreativePlayer.server_onRefresh( self ) | ||
self:sv_init() | ||
end | ||
|
||
function CreativePlayer.sv_init( self ) end | ||
|
||
function CreativePlayer.server_onDestroy( self ) end | ||
|
||
function CreativePlayer.client_onCreate( self ) | ||
self.cl = {} | ||
self:cl_init() | ||
end | ||
|
||
function CreativePlayer.client_onRefresh( self ) | ||
self:cl_init() | ||
end | ||
|
||
function CreativePlayer.cl_init(self) end | ||
|
||
function CreativePlayer.client_onUpdate( self, dt ) end | ||
|
||
function CreativePlayer.client_onInteract( self, character, state ) end | ||
|
||
function CreativePlayer.server_onFixedUpdate( self, dt ) end | ||
|
||
function CreativePlayer.server_onProjectile( self, hitPos, hitTime, hitVelocity, projectileName, attacker, damage ) end | ||
|
||
function CreativePlayer.server_onMelee( self, hitPos, attacker, damage, power ) | ||
if not sm.exists( attacker ) then | ||
return | ||
end | ||
|
||
if self.player.character and attacker.character then | ||
local attackDirection = ( hitPos - attacker.character.worldPosition ):normalize() | ||
-- Melee impulse | ||
if attacker then | ||
ApplyKnockback( self.player.character, attackDirection, power ) | ||
end | ||
end | ||
end | ||
|
||
function CreativePlayer.server_onExplosion( self, center, destructionLevel ) end | ||
|
||
function CreativePlayer.server_onCollision( self, other, collisionPosition, selfPointVelocity, otherPointVelocity, collisionNormal ) end | ||
|
||
function CreativePlayer.sv_e_staminaSpend( self, stamina ) end | ||
|
||
function CreativePlayer.sv_e_receiveDamage( self, damageData ) end | ||
|
||
function CreativePlayer.sv_e_respawn( self ) end | ||
|
||
function CreativePlayer.sv_e_debug( self, params ) end | ||
|
||
function CreativePlayer.sv_e_eat( self, edibleParams ) end | ||
|
||
function CreativePlayer.sv_e_feed( self, params ) end | ||
|
||
function CreativePlayer.sv_e_setRefiningState( self, params ) | ||
local userPlayer = params.user:getPlayer() | ||
if userPlayer then | ||
if params.state == true then | ||
userPlayer:sendCharacterEvent( "refine" ) | ||
else | ||
userPlayer:sendCharacterEvent( "refineEnd" ) | ||
end | ||
end | ||
end | ||
|
||
function CreativePlayer.sv_e_onLoot( self, params ) end | ||
|
||
function CreativePlayer.sv_e_onStayPesticide( self ) end | ||
|
||
function CreativePlayer.sv_e_onEnterFire( self ) end | ||
|
||
function CreativePlayer.sv_e_onStayFire( self ) end | ||
|
||
function CreativePlayer.sv_e_onEnterChemical( self ) end | ||
|
||
function CreativePlayer.sv_e_onStayChemical( self ) end | ||
|
||
function CreativePlayer.sv_e_startLocalCutscene( self, cutsceneInfoName ) end | ||
|
||
function CreativePlayer.client_onCancel( self ) end | ||
|
||
function CreativePlayer.client_onReload( self ) end | ||
|
||
function CreativePlayer.server_onShapeRemoved( self, removedShapes ) end | ||
CreativePlayer = class( BasePlayer ) | ||
dofile '$CONTENT_e94ac99f-393e-4816-abe3-353435a1edf4/Scripts/Overrides/CreativePlayer.lua' |
Oops, something went wrong.