Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A way to fix the health cap, and a LastRequest (!lr) fix #334

Open
mikcla opened this issue Mar 27, 2020 · 2 comments
Open

A way to fix the health cap, and a LastRequest (!lr) fix #334

mikcla opened this issue Mar 27, 2020 · 2 comments

Comments

@mikcla
Copy link

mikcla commented Mar 27, 2020

A way to fix health cap:

Its a little hard, but you seem to have a lot of skill. You can make it so, if a player has over 10k health, then there will come a new UI, where the ekstra health will come. So when you take dmg, you will losse the ekstra UI health, and not your normal health, until you run out of UI health of course.

LastRequest (!lr) fix:

If you dont know this plugin, then here is a link: https://forums.alliedmods.net/showthread.php?t=108810
If you combine it with rpg, it becomes unfair. I want rpg to turn off when is going on, and then back on, when its over. You chould do so when "!lr" is typed, all rpg stats are off, and when round ends its on again.

This is simply here to spark an idea, you properly know how to fix these issue, in a better way. Hope you do fix these bug.
Big fan of yours btw!

@mikcla
Copy link
Author

mikcla commented Mar 27, 2020

Hope my spelling isn´t to bad

@peace-maker
Copy link
Owner

I'm not sure how to add new HUD elements in Source games. There's the HudMsg user message, which is e.g. used for the rpg hud, but I'm not sure how that would look.

Upgrades can be disabled during last requests using a script like this.

#include <smrpg>
#include <lastrequest>

public Plugin myinfo = 
{
	name = "SM:RPG - Disable during Last Requests",
	author = "Peace-Maker",
	description = "Disable SM:RPG Upgrades during Hosties Last Requests",
	version = SMRPG_VERSION,
	url = "https://www.wcfan.de/"
}

// Don't apply any upgrade effects while one of the clients is in a LR.
public Action SMRPG_OnUpgradeEffect(int target, const char[] shortname, int issuer)
{
	if (IsClientInLastRequest(target))
		return Plugin_Stop;

	if (target != issuer && IsClientInLastRequest(issuer))
		return Plugin_Stop;

	return Plugin_Continue;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants