Raised This Month: $32 Target: $400
 8% 

Half-Life GunGame


Post New Thread Reply   
 
Thread Tools Display Modes
VexoNova
Junior Member
Join Date: Oct 2018
Old 12-05-2023 , 14:10   Re: Half-Life GunGame
Reply With Quote #141

Quote:
Originally Posted by nixRidge View Post
Wow, thanks for the update! I compiled it, and while the server still crashed, I realised I could try the the legacy server branch.
On legacy branch, gungame loads and works fine, but doesn't start until "gg_enable" is input in console; but that might just be me missing something obvious =) I'll just stay on legacy server for now.

Are you using the 25th Anniversary or steam_legacy server binaries?

I'll have to tinker more with it. Nevertheless, thank you again for updating =) Now we can finally play GunGame.
Same issue here. New server branch after anniversary update broke Gungame completely. I will try to use legacy version
VexoNova is offline
Old 12-05-2023, 18:47
nixRidge
This message has been deleted by nixRidge. Reason: Fixed it, the config in this message works suddenly and I don't know why. Didn't change anything, so it's not worth leaving t
nixRidge
Junior Member
Join Date: Dec 2023
Location: Norway
Old 12-05-2023 , 19:13   Re: Half-Life GunGame
Reply With Quote #142

This is regarding my previously deleted message. I thought it was working, but it's not.
When I tried adding "item_medkit" to <blockspawn>, it caused weapon_ and ammo_ items to appear in maps even if they're also in <blockspawn>.
What happened is I was probably mistakenly just picking up 9mmAR ammo.. lol

Anyways, the actual issue, I can't get infinite ammo (infinite reloads) to work. I really hope I didn't miss anything obvious =)

Ideally, I want everyone to have no AR grenades, and have infinite clips/reloads, infinite Gauss/Egon, snarks/tripmines etc. but I can't see an obvious way to do this.

With my current config, 9mmAR gets only extra 10 bullets to reload and nothing else, shotgun only gets 4 extra shells.
I also tried to set <equip> weapon_9mmAR </equip>, without anything like refil_time or refil_ammount, that makes 9mmAR spawn with the normal 25 ammo, 10 extra ammo, nothing else..
Setting refil_time_2 = 5.0 and refil_ammount_2 = 50.0 gives the player 10 9mmAR bullets sporadically, but only as long as they have less than 10 bullets in their reserve.
Why does refil_ammount_2 give 9mmAR bullets, and not 9mmAR grenades?

Again, I want infinite reloads for reloadable weapons, and infinite ammo for Gauss/Egon. Does anyone see if I'm doing something wrong here?

This is my gungame.ini:

Code:
<cvars>
		"gg_enabled" "1"
		"gg_sound_winner" "media/68degrees/gg_ending/01-ff7-fanfare.mp3"
		"gg_sound_levelup" "sound/debris/beamstart5.wav"
		"gg_sound_leveldown" "sound/debris/beamstart3.wav"
		"gg_uparmor" "0"
		"gg_descore" "1"
		"gg_autosave" "300.0"
		"gg_endgame_delay" "30.0"
		"gg_showstats" "1"
		"gg_stats_color" "255 255 0"
		"gg_stats_pos" "0.70 0.40"
		"gg_mapchange_style" "1"
		"gg_mapchooser_type" "0"
		"gg_startvote_nearlevel" "2"
		"gg_informer_color" "128 255 0"
		"gg_informer_pos" "-1.0 0.97"
		"gg_informer_holdtime" "20.0"
		"gg_chat_messages" "abdef"
		"gg_restore_hp" "0"
		"gg_default_hp" "100"
		"gg_default_ap" "50"
		"gg_icon_enable" "1"
		"gg_icon_color" "255 127 0"
		"gg_icon_blink" "3.0"
		"gg_icon_blink1" "45 215 255"
		"gg_icon_blink2" "255 0 0"
		"gg_handicap_on" "1"
		"gg_warmup" "30"
		"gg_prolevel_music" "media/68degrees/gg_lastlevel/01-ff6-dancing_mad.mp3"
		"gg_teamplay" "0"
		"gg_teamplay_multigoal" "2"
</cvars>

<sets>
	<level>
		kills = 4
		icon = d_9mmAR

		<equip>
			<weapon_9mmAR>
				clip = 50
			</weapon_9mmAR>
		</equip>

		<inflictors>
			weapon_9mmAR
		</inflictors>
	</level>

	<level>
		kills = 4
		icon = d_shotgun

		<equip>
			weapon_shotgun
		</equip>

		<inflictors>
			weapon_shotgun
		</inflictors>
	</level>

	<level>
		kills = 3
		icon = d_crossbow

		<equip>
			weapon_crossbow
		</equip>

		<inflictors>
			weapon_crossbow
			bolt
		</inflictors>
	</level>

	<level>
		kills = 4
		icon = d_gauss

		<equip>
			weapon_gauss
		</equip>

		<inflictors>
			weapon_gauss
		</inflictors>
	</level>

	<level>
		kills = 4
		icon = d_egon

		<equip>
			weapon_egon
		</equip>

		<inflictors>
			weapon_egon
		</inflictors>
	</level>

	<level>
		kills = 4
		icon = d_rpg_rocket

		<equip>
			weapon_rpg
		</equip>

		<inflictors>
			rpg_rocket
		</inflictors>
	</level>

	<level>
		kills = 3
		icon = d_hornet

		<equip>
			weapon_hornetgun
		</equip>

		<inflictors>
			hornet
		</inflictors>
	</level>

	<level>
		kills = 3
		icon = d_357

		<equip>
			weapon_357
		</equip>

		<inflictors>
			weapon_357
		</inflictors>
	</level>

	<level>
		kills = 3
		icon = d_9mmhandgun

		<equip>
			weapon_9mmhandgun
		</equip>

		<inflictors>
			weapon_9mmhandgun
		</inflictors>
	</level>

	<level>
		kills = 5
		icon = d_satchel
		botcant = 1
	
		<equip>
			weapon_satchel
		</equip>

		<inflictors>
			monster_satchel 5
		</inflictors>
	</level>

	<level>
		kills = 3
		icon = d_tripmine
		botcant = 1

		<equip>
			weapon_tripmine
			weapon_9mmhandgun
		</equip>

		<inflictors>
			monster_tripmine 10
		</inflictors>
	</level>

	<level>
		kills = 3
		icon = d_grenade

		<equip>
			weapon_handgrenade
		</equip>

		<inflictors>
			grenade
		</inflictors>
	</level>

	<level>
		kills = 2
		icon = d_snark

		<equip>
			weapon_snark
		</equip>

		<inflictors>
			monster_snark 8 1
		</inflictors>
	</level>

	<level>
		kills = 1
		icon = d_crowbar

		<equip>
			weapon_crowbar
			item_longjump
			item_battery
			item_battery
		</equip>

		<inflictors>
			weapon_crowbar
		</inflictors>
	</level>

</sets>

<mods>
	; Half-Life
	<valve>
		name = Half-Life
		
		; offsets founded by KORD_12.7
		<offsets>
			m_pPlayer = 28
			m_iId = 30
			m_iClip = 40
			m_pActiveItem = 306
			m_rgAmmo = 310
			offsetAmmoDiff = 1
		</offsets>

		<blockspawn>
			weapon_*
			ammo_*
			
			weaponbox
		</blockspawn>

		<warmup>
			<equip>
				weapon_crowbar
				item_longjump
			</equip>
		</warmup>

		<weaponlist>
			monster_tripmine 8 1 13 -1
			monster_satchel	9 1 14 -1
			monster_snark 11 1 15 -1
		</weaponlist>
	</valve>

	; MiniAG 6.6
	<agmini>
		name = AG mini
		
		; offsets founded by KORD_12.7
		<offsets>
			m_pPlayer = 28
			m_iId = 30
			m_iClip = 40
			m_afPhysicsFlags = 189
			m_pActiveItem = 302
			m_rgAmmo = 305
			offsetAmmoDiff = 1
		</offsets>

		<blockspawn>
			weapon_*
			ammo_*

			weaponbox
		</blockspawn>

		<warmup>
			<equip>
				weapon_crowbar
				item_longjump
			</equip>
		</warmup>

		<weaponlist>
			monster_tripmine 8 1 13 -1
			monster_satchel	9 1 14 -1
			monster_snark 11 1 15 -1
		</weaponlist>
	</agmini>

	; Adrenalie Gamer 6.6
	<ag>
		name = AG
		
		; offsets founded by KORD_12.7
		<offsets>
			m_pPlayer = 28
			m_iId = 30
			m_iClip = 40
			m_afPhysicsFlags = 189
			m_pActiveItem = 302
			m_rgAmmo = 305
			offsetAmmoDiff = 1
		</offsets>

		<blockspawn>
			weapon_*
			ammo_*

			weaponbox
		</blockspawn>

		<warmup>
			<equip>
				weapon_crowbar
				item_longjump
			</equip>
		</warmup>

		<weaponlist>
			monster_tripmine 8 1 13 -1
			monster_satchel	9 1 14 -1
			monster_snark 11 1 15 -1
		</weaponlist>
	</ag>
</mods>

Last edited by nixRidge; 12-05-2023 at 20:23. Reason: Further clarification
nixRidge is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 12-06-2023 , 17:29   Re: Half-Life GunGame
Reply With Quote #143

I am using the new server build and Amxx110. There will always be launch and uptime issues especially when using resource rich maps. Being that it crashes servers, and Windows clients, then won't launch for regular admins, author absent, OK UNAPPROVED.
DJEarthQuake is offline
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 12-06-2023 , 18:26   Re: Half-Life GunGame
Reply With Quote #144

what amazes me mr.dj is the code build from scratch that reads configurations using the html syntax. i bet you cant do that
__________________
bigdaddy424 is offline
nixRidge
Junior Member
Join Date: Dec 2023
Location: Norway
Old 12-07-2023 , 15:23   Re: Half-Life GunGame
Reply With Quote #145

Thank you for the info, DJEarthQuake.

I have found one of the reasons for the 25th Anniversary server crashing!
In gungame.ini, having "weapon_*" in <blockspawn> for the mod <valve> (Half-Life) causes the server to segfault.
Removing weapon_* from blockspawn lets the server boot and enable GunGame. It then crashes after about a minute or two of play.
(And again, this only affects the 25th Anniversary server. Legacy can of course use weapon_* in blockspawn, so I will keep using that.)

Also, by removing "offsetAmmoDiff = 1" in Half-Life offsets, infinite ammo works! =)

Here is my new gungame.ini:

Code:
; Half-Life GunGame, Copyright (c) 2012 - 2014 AGHL.RU Dev Team
;	http://aghl.ru/forum/ - Russian Half-Life and Adrenaline Gamer Community
;
; Info:
;	In this INI file you can set cvars, levels and mod settings for Half-Life GunGame mod. 

;	For each map, you can also add a configuration file that will load when the map loads.
;	To do this, simply create a .ini file named after the map with the settings in it.
;	For example, you might have amxmodx/configs/gungame/crossfire.ini for map crossfire with level elements in it.
;	For more information about configuration files you can found at http://gf.hldm.org/hl-gungame/ or http://aghl.ru/forum
;
;	This configuration file is for Half-Life

<cvars>
		"gg_enabled" "1"
		"gg_sound_winner" "media/Half-Life03.mp3;media/Half-Life08.mp3;media/Half-Life11.mp3;media/Half-Life17.mp3"
		"gg_sound_levelup" "sound/debris/beamstart5.wav"
		"gg_sound_leveldown" "sound/debris/beamstart5.wav"
		"gg_uparmor" "30"
		"gg_descore" "1"
		"gg_autosave" "300.0"
		"gg_endgame_delay" "15.0"
		"gg_showstats" "1"
		"gg_stats_color" "255 255 0"
		"gg_stats_pos" "0.70 0.40"
		"gg_mapchange_style" "1"
		"gg_mapchooser_type" "0"
		"gg_startvote_nearlevel" "2"
		"gg_informer_color" "128 255 0"
		"gg_informer_pos" "-1.0 0.97"
		"gg_informer_holdtime" "20.0"
		"gg_chat_messages" "abcdefgh"
		"gg_restore_hp" "1"
		"gg_default_hp" "100"
		"gg_default_ap" "100"
		"gg_icon_enable" "1"
		"gg_icon_color" "255 127 0"
		"gg_icon_blink" "3.0"
		"gg_icon_blink1" "45 215 255"
		"gg_icon_blink2" "255 0 0"
		"gg_handicap_on" "1"
		"gg_warmup" "0"
		"gg_prolevel_music" ""
		"gg_teamplay" "0"
		"gg_teamplay_multigoal" "2"
</cvars>

<sets>
	<level>
		kills = 4
		icon = d_9mmAR

		<equip>
			<weapon_9mmAR>
				clip = 50
				refil_time_2 = 20.0
				refil_ammount_2 = 2
				disable_fullammo_2 = 1
			</weapon_9mmAR>
		</equip>

		<inflictors>
			weapon_9mmAR
			grenade
		</inflictors>
	</level>

	<level>
		kills = 3
		icon = d_shotgun

		<equip>
			weapon_shotgun
		</equip>

		<inflictors>
			weapon_shotgun
		</inflictors>
	</level>

	<level>
		kills = 3
		icon = d_crossbow

		<equip>
			weapon_crossbow
		</equip>

		<inflictors>
			weapon_crossbow
			bolt
		</inflictors>
	</level>

	<level>
		kills = 4
		icon = d_gauss

		<equip>
			weapon_gauss
		</equip>

		<inflictors>
			weapon_gauss
		</inflictors>
	</level>

	<level>
		kills = 3
		icon = d_egon

		<equip>
			weapon_egon
		</equip>

		<inflictors>
			weapon_egon
		</inflictors>
	</level>

	<level>
		kills = 4
		icon = d_rpg_rocket

		<equip>
			weapon_rpg
		</equip>

		<inflictors>
			rpg_rocket
		</inflictors>
	</level>

	<level>
		kills = 4
		icon = d_hornet

		<equip>
			weapon_hornetgun
		</equip>

		<inflictors>
			hornet
		</inflictors>
	</level>

	<level>
		kills = 3
		icon = d_357

		<equip>
			weapon_357
		</equip>

		<inflictors>
			weapon_357
		</inflictors>
	</level>

	<level>
		kills = 3
		icon = d_9mmhandgun

		<equip>
			weapon_9mmhandgun
		</equip>

		<inflictors>
			weapon_9mmhandgun
		</inflictors>
	</level>

	<level>
		kills = 5
		icon = d_satchel
		botcant = 1
	
		<equip>
			weapon_satchel
		</equip>

		<inflictors>
			monster_satchel 5
		</inflictors>
	</level>

	<level>
		kills = 3
		icon = d_tripmine
		botcant = 1

		<equip>
			weapon_tripmine
			weapon_9mmhandgun
		</equip>

		<inflictors>
			monster_tripmine 10
		</inflictors>
	</level>

	<level>
		kills = 3
		icon = d_grenade

		<equip>
			weapon_handgrenade
		</equip>

		<inflictors>
			grenade
		</inflictors>
	</level>

	<level>
		kills = 2
		icon = d_snark

		<equip>
			weapon_snark
		</equip>

		<inflictors>
			monster_snark 8 1
		</inflictors>
	</level>

	<level>
		kills = 1
		icon = d_crowbar

		<equip>
			weapon_crowbar
			item_longjump
			item_battery
			item_battery
		</equip>

		<inflictors>
			weapon_crowbar
		</inflictors>
	</level>

</sets>

<mods>
	; Half-Life
	<valve>
		name = Half-Life
		
		<offsets>
			m_pPlayer = 28
			m_iClip = 40
			m_pActiveItem = 306
			m_rgAmmo = 310

		</offsets>

		<blockspawn>
			ammo_*
			weaponbox
		</blockspawn>

		<warmup>
			<equip>
				weapon_crowbar
				item_longjump
			</equip>
		</warmup>

		<weaponlist>
			monster_tripmine 8 1 13 -1
			monster_satchel	9 1 14 -1
			monster_snark 11 1 15 -1
		</weaponlist>
	</valve>

	; MiniAG 6.6
	<agmini>
		name = AG mini
		
		; offsets founded by KORD_12.7
		<offsets>
			m_pPlayer = 28
			m_iId = 30
			m_iClip = 40
			m_afPhysicsFlags = 189
			m_pActiveItem = 302
			m_rgAmmo = 305
			offsetAmmoDiff = 1
		</offsets>

		<blockspawn>
			weapon_*
			ammo_*

			weaponbox
		</blockspawn>

		<warmup>
			<equip>
				weapon_crowbar
				item_longjump
			</equip>
		</warmup>

		<weaponlist>
			monster_tripmine 8 1 13 -1
			monster_satchel	9 1 14 -1
			monster_snark 11 1 15 -1
		</weaponlist>
	</agmini>

	; Adrenalie Gamer 6.6
	<ag>
		name = AG
		
		; offsets founded by KORD_12.7
		<offsets>
			m_pPlayer = 28
			m_iId = 30
			m_iClip = 40
			m_afPhysicsFlags = 189
			m_pActiveItem = 302
			m_rgAmmo = 305
			offsetAmmoDiff = 1
		</offsets>

		<blockspawn>
			weapon_*
			ammo_*

			weaponbox
		</blockspawn>

		<warmup>
			<equip>
				weapon_crowbar
				item_longjump
			</equip>
		</warmup>

		<weaponlist>
			monster_tripmine 8 1 13 -1
			monster_satchel	9 1 14 -1
			monster_snark 11 1 15 -1
		</weaponlist>
	</ag>
</mods>

Last edited by nixRidge; 12-07-2023 at 17:48.
nixRidge is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 12-24-2023 , 11:12   Re: Half-Life GunGame
Reply With Quote #146

@nixRidge. Glad you can enjoy the script alas. It does that omission already.
Code:
replace(weaponSet[WSET_SHOWNAME],charsmax(weaponSet[WSET_SHOWNAME]),"weapon_","")

Stock INI no issues. Maybe one offset was changed over the years for op4 or never was right. Have fun playing wack-a-mole.

Quote:
Originally Posted by bigdaddy424 View Post
what amazes me mr.dj is the code build from scratch that reads configurations using the html syntax. i bet you cant do that
It's not complex.
Code:
if(buffer[0] == '<')
DJEarthQuake is offline
nixRidge
Junior Member
Join Date: Dec 2023
Location: Norway
Old 12-24-2023 , 11:18   Re: Half-Life GunGame
Reply With Quote #147

Quote:
Originally Posted by DJEarthQuake View Post
Have fun playing wack-a-mole
Hahaha, thank you. I am actually; I cannot code anything other than a little HTML, so chipping away at it getting it to work the way I want is proving quite fun and educational. I'm actually learning a little bit =) But yes, it really is a game of wack a mole.

Last edited by nixRidge; 12-24-2023 at 11:18.
nixRidge is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:15.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode