Skip to content

Commit

Permalink
Merge branch 'master' into chat2
Browse files Browse the repository at this point in the history
Conflicts:
	Source/gg2/Objects/Menus/HaxxyController.xml
	Source/gg2/Objects/Networking/GameServer.events/Destroy.xml
	Source/gg2/Scripts/game_init.gml
  • Loading branch information
Medo42 committed Jan 13, 2013
2 parents 646de74 + a346fb2 commit 9c2625d
Show file tree
Hide file tree
Showing 1,224 changed files with 439 additions and 440 deletions.
Binary file added Extensions/Faucet Forwarding V1.1.gex
Binary file not shown.
4 changes: 4 additions & 0 deletions Readme.txt
Expand Up @@ -489,6 +489,10 @@ You can find more information on Faucet Networking at http://gmc.yoyogames.com/i
This game uses the Download Manager DLL, created by Hobbel. It was wrapped into an extension by cspotcode. This game uses the Download Manager DLL, created by Hobbel. It was wrapped into an extension by cspotcode.
You can find more information on the Download Manager DLL at http://www.hobbl.com/gmdlls/downloadmanager You can find more information on the Download Manager DLL at http://www.hobbl.com/gmdlls/downloadmanager


This game uses the Faucet Forwarding Extension, created by NAGN, which wraps libminiupnp.
miniupnp is availible under the BSD license: see miniupnp.license for full license.
You can find more about Faucet Forwarding at its GitHub Page:
https://github.com/nagn/Faucet-Forwarding
Readme Changelog Readme Changelog
2/7/09 - fishmatt - cleaned everything up for 2.0 2/7/09 - fishmatt - cleaned everything up for 2.0
5/3/09 - mrfredman - updated things for 2.1 5/3/09 - mrfredman - updated things for 2.1
Expand Down
4 changes: 2 additions & 2 deletions Source/gg2/Constants.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<constants> <constants>
<constant name="VERSION" value="24400"/> <constant name="VERSION" value="24500"/>
<constant name="GAME_VERSION_STRING" value="&quot;v2.4.4&quot;"/> <constant name="GAME_VERSION_STRING" value="&quot;v2.4.5&quot;"/>
<constant name="GAME_NAME_STRING" value="&quot;Gang Garrison 2&quot;"/> <constant name="GAME_NAME_STRING" value="&quot;Gang Garrison 2&quot;"/>
<constant name="GAME_URL_STRING" value="&quot;http://www.ganggarrison.com/&quot;"/> <constant name="GAME_URL_STRING" value="&quot;http://www.ganggarrison.com/&quot;"/>
<constant name="PROTOCOL_UUID" value="&quot;31ce5361-4852-9d95-3ac2-2b3a07219a40&quot;"/> <constant name="PROTOCOL_UUID" value="&quot;31ce5361-4852-9d95-3ac2-2b3a07219a40&quot;"/>
Expand Down
1 change: 1 addition & 0 deletions Source/gg2/Extension Packages.xml
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<extensionPackages> <extensionPackages>
<package>Faucet Forwarding</package>
<package>Faucet Networking</package> <package>Faucet Networking</package>
<package>GG2DLL</package> <package>GG2DLL</package>
<package>Hobbl Download Manager Ext Wrapper</package> <package>Hobbl Download Manager Ext Wrapper</package>
Expand Down
4 changes: 2 additions & 2 deletions Source/gg2/Global Game Settings.xml
Expand Up @@ -41,11 +41,11 @@
<gameInfo> <gameInfo>
<gameId>907152</gameId> <gameId>907152</gameId>
<author>Faucet Software</author> <author>Faucet Software</author>
<version>2.4.4</version> <version>2.4.5</version>
<information/> <information/>
<versionMajor>2</versionMajor> <versionMajor>2</versionMajor>
<versionMinor>4</versionMinor> <versionMinor>4</versionMinor>
<versionRelease>4</versionRelease> <versionRelease>5</versionRelease>
<versionBuild>0</versionBuild> <versionBuild>0</versionBuild>
<company>Faucet Software</company> <company>Faucet Software</company>
<product>Gang Garrison 2</product> <product>Gang Garrison 2</product>
Expand Down
24 changes: 12 additions & 12 deletions Source/gg2/Objects/InGameElements/DeadGuy.events/Step.xml
Expand Up @@ -13,19 +13,19 @@
<not>false</not> <not>false</not>
<appliesTo>.self</appliesTo> <appliesTo>.self</appliesTo>
<arguments> <arguments>
<argument kind="STRING">{ <argument kind="STRING">if(abs(hspeed)&lt;0.2) {
hspeed/=1.1; hspeed=0;
if(abs(hspeed)&lt;0.2) { }
hspeed=0; if(place_free(x,y+1)) {
} vspeed += 0.6;

if(vspeed&gt;10) {
if(place_free(x,y+1)) { vspeed=10;
vspeed += 0.6;
if(vspeed&gt;10) {
vspeed=10;
}
} }
}</argument> } else {
hspeed/=1.1;
}

</argument>
</arguments> </arguments>
</action> </action>
</actions> </actions>
Expand Down
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<event category="COLLISION" with="Obstacle">
<actions>
<action id="603" library="1">
<!--action name: Code-->
<kind>CODE</kind>
<allowRelative>false</allowRelative>
<question>false</question>
<canApplyTo>true</canApplyTo>
<actionType>CODE</actionType>
<functionName/>
<relative>false</relative>
<not>false</not>
<appliesTo>.self</appliesTo>
<arguments>
<argument kind="STRING">{
hspeed*=hfric;
rotspeed*=rotfric;

if((speed&gt;4) and (vspeed&gt;2) and (snd)){
repeat(9)
if(abs(speed/bloodchance)&gt;random(3)) {
var blood;
blood = instance_create(x,y-1,BloodDrop);
blood.ogib=self;
blood.odir=point_direction(x,y,x+hspeed,y+vspeed);
with(blood) {
motion_add(odir, ogib.speed*-0.8);
hspeed+=random(8)-3.5;
vspeed-=random(6)-2;
}
}

}

move_contact_solid(point_direction(x,y,x+hspeed,y+vspeed), speed);
if(not place_free(x,y+sign(vspeed))) {
vspeed*=-0.4;
if(not place_free(x+hspeed,y)){
move_contact_solid(point_direction(x,y,x+hspeed,y+vspeed), speed);
hspeed*=-0.4;
}
}
if(not place_free(x+sign(hspeed),y)){
hspeed*=-0.4;
if(not place_free(x,y+vspeed)) {
move_contact_solid(point_direction(x,y,x+hspeed,y+vspeed), speed);
vspeed*=-0.4;
}
}
}
</argument>
</arguments>
</action>
</actions>
</event>
Expand Up @@ -14,7 +14,18 @@
<appliesTo>.self</appliesTo> <appliesTo>.self</appliesTo>
<arguments> <arguments>
<argument kind="STRING">image_speed = 0; <argument kind="STRING">image_speed = 0;
image_index = 0; image_index = -1;
image_xscale=2;
image_yscale=2;
bloodchance=2;
hfric=0.4;
snd=false;
rotfric=0.2;
direction = (random(100)-80);
alarm[0]=250;
rotspeed=1;
fadeout = false;
vspeed=-4
</argument> </argument>
</arguments> </arguments>
</action> </action>
Expand Down
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<object id="806"> <object id="806">
<sprite>HaxxyS</sprite> <sprite>XmashatS</sprite>
<solid>false</solid> <solid>false</solid>
<visible>true</visible> <visible>true</visible>
<depth>-1</depth> <depth>0</depth>
<persistent>false</persistent> <persistent>false</persistent>
<parent/> <parent>Gib</parent>
<mask/> <mask/>
</object> </object>
Expand Up @@ -10,4 +10,5 @@
<resource name="BloodDrop" type="RESOURCE"/> <resource name="BloodDrop" type="RESOURCE"/>
<resource name="Blood" type="RESOURCE"/> <resource name="Blood" type="RESOURCE"/>
<resource name="PartyHat" type="RESOURCE"/> <resource name="PartyHat" type="RESOURCE"/>
<resource name="XmasHat" type="RESOURCE"/>
</resources> </resources>
21 changes: 0 additions & 21 deletions Source/gg2/Objects/Menus/HaxxyController.events/Mouse enter.xml

This file was deleted.

21 changes: 0 additions & 21 deletions Source/gg2/Objects/Menus/HaxxyController.events/Mouse leave.xml

This file was deleted.

This file was deleted.

Expand Up @@ -67,6 +67,11 @@ menu_addedit_boolean("Auto Balance:", "global.autobalance", '
menu_addedit_boolean("Announce to Lobby:", "global.useLobbyServer", ' menu_addedit_boolean("Announce to Lobby:", "global.useLobbyServer", '
gg2_write_ini("Settings", "UseLobby", argument0); gg2_write_ini("Settings", "UseLobby", argument0);
'); ');
menu_addedit_boolean("Attempt UPnP Forwarding:", "global.attemptPortForward", '
if (argument0 == 1)
show_message("Warning: UPNP support is currently experimental and enabling it may cause freezing while starting a server, but should cause no freezing ingame")
gg2_write_ini("Server", "Attempt UPnP Forwarding", argument0);
');
menu_addlink("Start Game", ' menu_addlink("Start Game", '
//Server respawn time calculator. Converts each second to a frame. (read: multiply by 30 :hehe:) //Server respawn time calculator. Converts each second to a frame. (read: multiply by 30 :hehe:)
if (global.Server_RespawntimeSec == 0) if (global.Server_RespawntimeSec == 0)
Expand Down
1 change: 0 additions & 1 deletion Source/gg2/Objects/Menus/_resources.list.xml
Expand Up @@ -12,5 +12,4 @@
<resource name="CreditsController" type="RESOURCE"/> <resource name="CreditsController" type="RESOURCE"/>
<resource name="DevMessageChecker" type="RESOURCE"/> <resource name="DevMessageChecker" type="RESOURCE"/>
<resource name="MenuController" type="RESOURCE"/> <resource name="MenuController" type="RESOURCE"/>
<resource name="HaxxyController" type="RESOURCE"/>
</resources> </resources>
3 changes: 3 additions & 0 deletions Source/gg2/Objects/Networking/GameServer.events/Destroy.xml
Expand Up @@ -36,6 +36,9 @@ with(JoiningPlayer)
with(PlayerControl) with(PlayerControl)
instance_destroy(); instance_destroy();


if (global.attemptPortForward and portForwarded)
upnp_release_port(string(global.hostingPort), "TCP")

with(Chatbox) with(Chatbox)
instance_destroy(); instance_destroy();


Expand Down
4 changes: 4 additions & 0 deletions Source/gg2/Objects/Networking/GameServer.events/Game End.xml
Expand Up @@ -17,6 +17,10 @@
sendLobbyUnreg(); sendLobbyUnreg();
sleep(10); // Wait a bit so the networking extension has time to send the packet... sleep(10); // Wait a bit so the networking extension has time to send the packet...
} }
if(global.attemptPortForward and portForwarded) {
upnp_release_port(string(global.hostingPort), "TCP")
sleep(10); // Wait a bit so the forwarding extension has time to request a release
}
</argument> </argument>
</arguments> </arguments>
</action> </action>
Expand Down
10 changes: 2 additions & 8 deletions Source/gg2/Rooms/Menu.xml
Expand Up @@ -4,12 +4,12 @@
<size height="600" width="600"/> <size height="600" width="600"/>
<grid> <grid>
<isometric>false</isometric> <isometric>false</isometric>
<snap x="2" y="16"/> <snap x="16" y="16"/>
</grid> </grid>
<speed>30</speed> <speed>30</speed>
<persistent>false</persistent> <persistent>false</persistent>
<creationCode/> <creationCode/>
<backgroundColor>2D2C24</backgroundColor> <backgroundColor>C0C0C0</backgroundColor>
<drawBackgroundColor>true</drawBackgroundColor> <drawBackgroundColor>true</drawBackgroundColor>
<backgrounds> <backgrounds>
<backgroundDef> <backgroundDef>
Expand Down Expand Up @@ -107,12 +107,6 @@
<creationCode/> <creationCode/>
<locked>false</locked> <locked>false</locked>
</instance> </instance>
<instance>
<object>HaxxyController</object>
<position x="38" y="48"/>
<creationCode/>
<locked>false</locked>
</instance>
</instances> </instances>
<tiles/> <tiles/>
<editorSettings remember="false"/> <editorSettings remember="false"/>
Expand Down

0 comments on commit 9c2625d

Please sign in to comment.