Raised This Month: $12 Target: $400
 3% 

Half-Life GunGame


Post New Thread Reply   
 
Thread Tools Display Modes
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 06-05-2017 , 11:44   Re: Half-Life GunGame
Reply With Quote #101

Quote:
Originally Posted by RoboCop View Post
When I loaded HL GunGame up for CZero server, the bottom HUD stats appears not to allow counting the kills been taken, nor show the leader with gun he/she is using.
Show me output for following commands (server console):
Code:
ham hooks
meta game
Quote:
Originally Posted by RoboCop View Post
Also is it possible that you could make HL GunGame compatible for DMC please?
Try to run it on lastest amxmodx nightly build. Replace valve to dmc in default gungame.ini and update levels for dmc weapons. You can look for dmc weapon names in dmc fgd

If it doesn't works post ham hooks and meta game.
__________________
The functional way is the right way

Last edited by GordonFreeman (RU); 06-05-2017 at 11:45.
GordonFreeman (RU) is offline
RoboCop
AlliedModders Donor
Join Date: Dec 2010
Location: Dundee, Scotland
Old 06-05-2017 , 15:31   Re: Half-Life GunGame
Reply With Quote #102

Da. Here is the server commands reply from my CZ server:

Code:
20:28:44 meta game
20:28:44 GameDLL info:
                 name: czero
                 desc: Counter-Strike:Condition Zero
              gamedir: /home/hl1/steamcmd/hlds/czero
             dll file: cs.so
         dll pathname: /home/hl1/steamcmd/hlds/czero/dlls/cs.so
         Game registered user msgs:    msgid   size
            VoiceMask                    64      8
            ReqState                     65      0
            CurWeapon                    66      3
            Geiger                       67      1
            Flashlight                   68      2
            FlashBat                     69      1
            Health                       70      1
            Damage                       71     12
            Battery                      72      2
            Train                        73      1
            HudTextPro                   74     -1
            HudText                      75     -1
            SayText                      76     -1
            TextMsg                      77     -1
            WeaponList                   78     -1
            ResetHUD                     79      0
            InitHUD                      80      0
            ViewMode                     81      0
            GameTitle                    82      1
            DeathMsg                     83     -1
            ScoreAttrib                  84      2
            ScoreInfo                    85      9
            TeamInfo                     86     -1
            TeamScore                    87     -1
            GameMode                     88      1
            MOTD                         89     -1
            ServerName                   90     -1
            AmmoPickup                   91      2
            WeapPickup                   92      1
            ItemPickup                   93     -1
            HideWeapon                   94      1
            SetFOV                       95      1
            ShowMenu                     96     -1
            ScreenShake                  97      6
            ScreenFade                   98     10
            AmmoX                        99      2
            SendAudio                   100     -1
            RoundTime                   101      2
            Money                       102      5
            ArmorType                   103      1
            BlinkAcct                   104      1
            StatusValue                 105     -1
            StatusText                  106     -1
            StatusIcon                  107     -1
            BarTime                     108      2
            ReloadSound                 109      2
            Crosshair                   110      1
            NVGToggle                   111      1
            Radar                       112      7
            Spectator                   113      2
            VGUIMenu                    114     -1
            TutorText                   115     -1
            TutorLine                   116     -1
            TutorState                  117     -1
            TutorClose                  118     -1
            AllowSpec                   119      1
            BombDrop                    120      7
            BombPickup                  121      0
            ClCorpse                    122     -1
            HostagePos                  123      8
            HostageK                    124      1
            HLTV                        125      2
            SpecHealth                  126      1
            ForceCam                    127      3
            ADStop                      128      0
            ReceiveW                    129      1
            CZCareer                    130     -1
            CZCareerHUD                 131     -1
            ShadowIdx                   132      4
            TaskTime                    133      4
            Scenario                    134     -1
            BotVoice                    135      2
            BuyClose                    136      0
            SpecHealth2                 137      2
            BarTime2                    138      4
            ItemStatus                  139      1
            Location                    140     -1
            BotProgress                 141     -1
            Brass                       142     -1
            Fog                         143      7
            ShowTimer                   144      0
            HudTextArgs                 145     -1
         82 game user msgs
20:28:48 ham hooks
20:28:48 Key                      | Classname                   |        Pre |       Post
         --------------------------------------------------------------------------------
         spawn                    | player                      |          0 |          1
         takedamage               | player                      |          1 |          0
         killed                   | player                      |          1 |          1
         think                    | grenade                     |          1 |          0
         touch                    | func_vip_safetyzone         |          1 |          0
         item_postframe           | weapon_ak47                 |          2 |          0
         item_postframe           | weapon_aug                  |          1 |          1
         item_postframe           | weapon_famas                |          1 |          1
         item_postframe           | weapon_galil                |          1 |          1
         item_postframe           | weapon_m249                 |          1 |          1
         item_postframe           | weapon_m4a1                 |          1 |          1
         item_postframe           | weapon_mac10                |          1 |          1
         item_postframe           | weapon_mp5navy              |          1 |          1
         item_postframe           | weapon_p90                  |          1 |          1
         item_postframe           | weapon_sg552                |          1 |          1
         item_postframe           | weapon_tmp                  |          1 |          1
         item_postframe           | weapon_ump45                |          1 |          1
         weapon_primaryattack     | weapon_ak47                 |          1 |          0
         weapon_primaryattack     | weapon_aug                  |          1 |          0
         weapon_primaryattack     | weapon_deagle               |          1 |          1
         weapon_primaryattack     | weapon_elite                |          1 |          1
         weapon_primaryattack     | weapon_famas                |          1 |          0
         weapon_primaryattack     | weapon_fiveseven            |          1 |          1
         weapon_primaryattack     | weapon_galil                |          1 |          0
         weapon_primaryattack     | weapon_glock18              |          1 |          1
         weapon_primaryattack     | weapon_m249                 |          1 |          0
         weapon_primaryattack     | weapon_m4a1                 |          1 |          0
         weapon_primaryattack     | weapon_mac10                |          1 |          0
         weapon_primaryattack     | weapon_mp5navy              |          1 |          0
         weapon_primaryattack     | weapon_p228                 |          1 |          1
         weapon_primaryattack     | weapon_p90                  |          1 |          0
         weapon_primaryattack     | weapon_scout                |          1 |          1
         weapon_primaryattack     | weapon_sg550                |          1 |          0
         weapon_primaryattack     | weapon_sg552                |          1 |          0
         weapon_primaryattack     | weapon_tmp                  |          1 |          0
         weapon_primaryattack     | weapon_ump45                |          1 |          0
         weapon_primaryattack     | weapon_usp                  |          1 |          1
         
         37 hooks, 57 forwards.
And yes I'll see what I can do for DMC, if this works, I'll share the .ini file in this topic for you guys to try out.
__________________
vBulletin Webmaster Since 2001
Bots-United Webmaster and Botmaster
RoboCop is offline
Send a message via Skype™ to RoboCop
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 06-06-2017 , 00:31   Re: Half-Life GunGame
Reply With Quote #103

Quote:
Originally Posted by RoboCop View Post
Da. Here is the server commands reply from my CZ server.
Hm. Do you test it with bots ?
Spoiler
__________________
The functional way is the right way

Last edited by GordonFreeman (RU); 06-06-2017 at 00:31.
GordonFreeman (RU) is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-06-2017 , 09:59   Re: Half-Life GunGame
Reply With Quote #104

Nice work.
__________________








CrazY. is offline
RoboCop
AlliedModders Donor
Join Date: Dec 2010
Location: Dundee, Scotland
Old 06-08-2017 , 11:11   Re: Half-Life GunGame
Reply With Quote #105

For DMC I did add the DMC weapons and loaded that plugin on the latest AMXX beta build on my server. But I don't know if I set it correctly as it appears to crash after warmup sometimes for no good reason. And there's no unlimited for the Lightning Gun and the other guns, that it won't fire and the weapon_axe appears to not allow me to use to attack enemies. Also I've enabled DMC TeamPlay for hgrunt;helmet but I don't know if that will cause any instability, and I want for the players to automatically spawn their main weapon at their first level and optionally have the axe for melee kills. Here is the gungame.ini for DMC:-

HTML Code:
<cvars>
		"gg_enabled" "1"
		"gg_sound_winner" ""
		"gg_sound_levelup" "sound/debris/beamstart5.wav"
		"gg_sound_leveldown" "sound/debris/beamstart5.wav"
		"gg_uparmor" "20"
		"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" "4"
		"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" "30"
		"gg_prolevel_music" ""
		"gg_teamplay" "1"
		"gg_teamplay_multigoal" "2"
</cvars>

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

		<equip>
			weapon_lightning
		</equip>

		<inflictors>
			weapon_lightning
		</inflictors>
	</level>
	
	<level>
		kills = 4
		icon = d_missile

		<equip>
			weapon_missile
		</equip>

		<inflictors>
			weapon_missile
		</inflictors>
	</level>

	<level>
		kills = 3
		icon = d_grenade

		<equip>
			weapon_grenade
		</equip>

		<inflictors>
			weapon_grenade
		</inflictors>
	</level>

	<level>
		kills = 2
		icon = d_superspike

		<equip>
			weapon_superspike
		</equip>

		<inflictors>
			weapon_superspike
		</inflictors>
	</level>

	<level>
		kills = 2
		icon = d_spike

		<equip>
			weapon_spike
		</equip>

		<inflictors>
			weapon_spike
		</inflictors>
	</level>

	<level>
		kills = 2
		icon = d_doubleshotgun

		<equip>
			weapon_doubleshotgun
		</equip>

		<inflictors>
			weapon_doubleshotgun
		</inflictors>
	</level>

	<level>
		kills = 2
		icon = d_shotgun

		<equip>
			weapon_shotgun
		</equip>

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

	<level>
		kills = 1
		icon = d_axe

		<equip>
			weapon_axe
		</equip>

		<inflictors>
			weapon_axe
		</inflictors>
	</level>

</sets>

<mods>
	; DeathMatch Classic
	<dmc>
		name = DeathMatch Classic
        
		<offsets>
			m_pPlayer = 89
			m_iClip = 108
			m_pActiveItem = 277
			m_rgAmmo = 280
			offsetAmmoDiff = 0
		</offsets>
        
		<blockspawn>
			weapon_*
			ammo_*

			weaponbox
		</blockspawn>

		<warmup>
			<equip>
				weapon_axe
			</equip>
		</warmup>
		
	</dmc>
</mods>
I'll try those weapons order in reverse to see what the results are too.
__________________
vBulletin Webmaster Since 2001
Bots-United Webmaster and Botmaster

Last edited by RoboCop; 06-08-2017 at 11:22.
RoboCop is offline
Send a message via Skype™ to RoboCop
RoboCop
AlliedModders Donor
Join Date: Dec 2010
Location: Dundee, Scotland
Old 06-13-2017 , 12:18   Re: Half-Life GunGame
Reply With Quote #106

@GordonFreeman (RU)
Also I know that HL GG for HLDM recommends to use AGHL BugFixed 0.1.949 but maybe nowhere earlier than that version. But it appears that AGHL site won't allow me nor anyone download that zip from ".../files/patches/BugfixedHL/" weblink... Are you able to inform the AGHL team? I don't speak Russian.
__________________
vBulletin Webmaster Since 2001
Bots-United Webmaster and Botmaster
RoboCop is offline
Send a message via Skype™ to RoboCop
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 06-15-2017 , 06:15   Re: Half-Life GunGame
Reply With Quote #107

sorry i forget to answer xdd
i have no more time for goldsrc

czero is looks same as cstrike, its should work
but maybe you need add support for czbots

replace
Code:
hookSpawn = RegisterHam(Ham_Spawn,"player","On_PlayerSpawn",true) hookKilled = RegisterHam(Ham_Killed,"player","On_PlayerKilled",true) hookDamage = RegisterHam(Ham_TakeDamage,"player","On_PlayerTakeDamage",false) hookTrace = RegisterHam(Ham_TraceAttack,"player","On_TraceAttack",false)
with
Code:
hookSpawn = RegisterHam(Ham_Spawn,"player","On_PlayerSpawn",true, true) hookKilled = RegisterHam(Ham_Killed,"player","On_PlayerKilled",true, true) hookDamage = RegisterHam(Ham_TakeDamage,"player","On_PlayerTakeDamage",false, true) hookTrace = RegisterHam(Ham_TraceAttack,"player","On_TraceAttack",false, true)
and recompile and use it with amxx 1.8.3

about dmc i checked hlsdk and get that its coded very different from other mods

i should say this plugin is incompatible with dmc
hm, maybe its crashing because of infinity ammo, try remove any strings with m_rgAmmo in plugin source and give ammo for players on on spawn

dmc ammo item names can be founded in hlsdk
dmc weapon names also is there

you can setup any weapons for levels like that (remove inflictors section):
Code:
<level>
	kills = 4
	icon = d_missile

	<equip>
		weapon_missile
		weapon_axe
	</equip>
</level>
AGHL.ru has english forum
Lev is on vacation now
__________________
The functional way is the right way

Last edited by GordonFreeman (RU); 06-15-2017 at 06:18.
GordonFreeman (RU) is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 02-08-2018 , 21:36   Re: Half-Life GunGame
Reply With Quote #108

Extremely good work. Thank you. Flawless! Fully-auto spores is one of my favorites. I think I remember years back playing this on Ubermensch. The players jumping up and down during end/vote is a nice touch. This should be approved. Big time. There are plenty of approved plugins with seg faults which on the modern time-sharing concept is always a divide by zero when I pluck them out. You are right must compile on own. RTFM helps a lot.
DJEarthQuake is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 01-10-2019 , 12:35   Re: Half-Life GunGame
Reply With Quote #109

Ever since I deployed this I noticed attendance was down on a half-life 1 top 20 in the world server using GoldSrc engine but never did I assume the code was responsible. Both client and server side I use Linux which is immune to this satchel problem. There were some complaints. It appears Windows users have issues. I am testing this now with the 2 lines commented out. By the way the quantity of warnings on the compile list is disturbing. It wouldn't be approved code by today's standards with this going on. Since you have known it to do this why the hell does the source still have this open and not commented out?

if(!playersData[id][PLAYER_BOT])
Draw_LevelsInHud(id,3) // TODO: cvar ?
__________________
DJEarthQuake is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 01-10-2019 , 15:07   Re: Half-Life GunGame
Reply With Quote #110

hai
Quote:
Originally Posted by DJEarthQuake View Post
Fully-auto spores is one of my favorites. I think I remember years back playing this on Ubermensch.
Oh, you are talking about Oppsoing Force right ?

Quote:
Originally Posted by DJEarthQuake View Post
Since you have known it to do this why the hell does the source still have this open and not commented out?
It's only Opposing Force specific issue. First crash report #86.
Sorry, forgot to mention about this in description... that what happens when your plugin doesn't get approved for so long time
Fixed!
Quote:
Originally Posted by DJEarthQuake View Post
By the way the quantity of warnings on the compile list is disturbing.
Eh, em.. this plugin was writted with amxx 1.8.2, just wonder about warnings with newer compiler.


thanks for using my plugin btw
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2019-01-11 AMX Mod X - Half-Life Scripting for Pros .png
Views:	226
Size:	14.2 KB
ID:	173221  
__________________
The functional way is the right way

Last edited by GordonFreeman (RU); 01-10-2019 at 15:25.
GordonFreeman (RU) is offline
Reply


Thread Tools
Display Modes

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 07:49.


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