AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Guardian (Gears of War 2) 1.43 - 2015-06-13 (https://forums.alliedmods.net/showthread.php?t=103679)

JoshGomez 09-15-2009 10:44

Guardian (Gears of War 2) 1.43 - 2015-06-13
 
2 Attachment(s)
Guardian based on Gears of War 2, a game type which add a team leader to your team who is the guardian. As long the team leader is alive other player will be respawned. The Guardian spawn with 150hp, 200ap and glowing the same colour as the team. A status icon will also indicate when you are the guardian. The team mates have to protect him or her while some has to attack the other guardian to win.

Code:

amx_guardian, sv_guardian = 1/0
- Turn on and off the plugin.

sv_ga_spawntime, amx_ga_spawntime = Float
- The time it takes for respawning, defualt 5.0.

sv_ga_weapon, amx_ga_weapon = String
- The weapon you will respawn with, default weapon_mp5navy.

sv_ga_ammo, amx_ga_ammo = String
- The ammo you will respawn with, defualt ammo_9mm.

amx_ga_*
- Console commands
sv_ga_*
- Server commands

say /guardian|s
- Show who are the current guardians.

http://wiki.amxmodx.org/CS_Weapons_Information

Version 1.0
- First release
Version 1.1
- Removed Log Events
- Changed some Events to Ham Events
- Fixed Team Change bug
- Added Guardian Kill Notice as HUD
Version 1.2
- Multilingual support
- CS VIP support
Version 1.21
- Fixed Multilingual
Version 1.22
- Small optimization
Version 1.23
- Small Fix
Version 1.3
- Fixed Status Icon may not be shown after next round
- Fixed Gurdian will spawn in opposite team when the player
change team while he or she is a guardian
- Small optimization
Version 1.4
- Added Color Messages
- Added two commands to see who are the guardians
Version 1.42
- Fixed Guardian would still be alive after disconnect
- Fixed Guardian would still be alive after changing to spectator
Version 1.43
- I think Guardian will spawn as Server is fixed. (Request from someone)

Special Thanks:
Crazyeffect - Added multilingual support
Alejo324 - Spanish translation
Salau - Portuguese translation

xbatista 09-15-2009 10:46

Re: Guardian (Gears of War 2) 1.0
 
Quote:

As long the team leader is alive other player will be respawned
interesting plugin!
But code need much optimization/changes :0

JoshGomez 09-15-2009 10:55

Re: Guardian (Gears of War 2) 1.0
 
thanks and where do i need to change?

xbatista 09-15-2009 11:01

Re: Guardian (Gears of War 2) 1.0
 
Example:
Called 1 or more times
PHP Code:

register_event("ResetHUD","event_hud_reset","be"); 

--->
PHP Code:

RegisterHam(Ham_Spawn"player",  "event_hud_reset"1

Called 1 time.
Also check if player alive
PHP Code:

public event_hud_reset(id)
{    
    if (!
is_user_alive(id))
        return;

// code



JoshGomez 09-15-2009 11:06

Re: Guardian (Gears of War 2) 1.0
 
I see, well so I should loop through players then when its only called one time?

ot_207 09-15-2009 11:11

Re: Guardian (Gears of War 2) 1.0
 
It is called for every player.
No need to loop.

xbatista 09-15-2009 11:12

Re: Guardian (Gears of War 2) 1.0
 
Josh No, just look at my previous post what I posted to you

JoshGomez 09-15-2009 11:23

Re: Guardian (Gears of War 2) 1.0
 
xbatista and ot_207 thanks

Is there any world event before spawn I can register which is called one time? Would be great if anyone could tell.

However I going to do homework so I will optimize later.

Viera 09-15-2009 14:03

Re: Guardian (Gears of War 2) 1.0
 
Goog job :) + for you.

JoshGomez 09-16-2009 06:10

Re: Guardian (Gears of War 2) 1.1 - 16/09/2009
 
New Version


All times are GMT -4. The time now is 07:32.

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