Raised This Month: $ Target: $400
 0% 

DM/OP4 King of the Hill


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Half-Life        Category:   Gameplay       
MarquisEXB
Junior Member
Join Date: Mar 2008
Old 03-15-2008 , 23:43   DM/OP4 King of the Hill
Reply With Quote #1

Hi new programmer here. I found a KOTH plugin, but that seemed to be for cstrike. This one is written for DM/OP4. It works for both teamplay & dm.

In the teamplay version all players are on one team, and the king is on another (everyone vs one player). Whoever kills the king respawns on the new team as the king (the old king's goes on the other team with everyone else). The king spawns with 100 health & 50 armor, and regenerates up to 100/100. In non-teamplay, the king glows (so you know who the king is).

It seems to work best on open levels like rats where the king has plenty of places to run/hide, and fails miserably on killbox style levels.

Being a new programmer, unfortunately I am not able to do everything I would like to do. For instance I'm not sure how to set the variables to be read from cvar. Instead I've used globals (g_regen_speed, g_king_frag_bonus, etc.). Additionally I'm not sure how to use amx rights, or how to have it load automatically each round (i have to type "amx_koth" in the console each time).

This specific version is not tested, but a previous one works fine. I haven't been able to test it out as I play on a small lan.
Attached Files
File Type: sma Get Plugin or Get Source (amx_koth.sma - 801 views - 6.1 KB)

Last edited by MarquisEXB; 03-16-2008 at 11:18.
MarquisEXB is offline
 


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 20:35.


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