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

Showing results 1 to 25 of 310
Search took 0.01 seconds.
Search: Posts Made By: xerox8521
Forum: Plugin/Gameplay Ideas and Requests 04-17-2024, 10:54
Replies: 3
Views: 311
Posted By xerox8521
Re: Max Health Restoration Mod

You can change first_aid_heal_percent to 1.0 which will always fully heal a survivor.

Like so:
sm_cvar first_aid_heal_percent 1.0

Valid values between 0.0 and 1.0 where 1.0 equals to 100% so a...
Forum: Scripting 12-20-2023, 10:13
Replies: 8
Views: 1,219
Posted By xerox8521
Re: CSS Knife can't be equipped with Command ?

You are passing a weapon id to EquipPlayerWeapon which requires an entity index of that weapon.
Your game crashes as it tries to equip a non weapon entity.
What you need is the return value of...
Forum: Scripting 07-20-2023, 13:37
Replies: 0
Views: 576
Posted By xerox8521
Discord GetGuildMember how to process?

Hi,
using this plugin https://forums.alliedmods.net/showthread.php?t=292448 and I wanted to add a way to retrieve the guild specific Nickname for a given user now there is GetGuildMember...
Forum: Scripting 07-03-2023, 06:21
Replies: 1
Views: 536
Posted By xerox8521
Iterating over enum structs

Hi,
I have this enum struct enum struct UpgradeInfo
{
bool bLoaded;
int iHealth;
int iDamage;
}

UpgradeInfo upgInfo[MAXPLAYERS+1];
Forum: Scripting 06-01-2023, 09:49
Replies: 0
Views: 345
Posted By xerox8521
Entity Name cleared before it's supposed to

Hi,

I setup a detour (also tried vtable hook) for CBreakable::Die (https://github.com/ValveSoftware/source-sdk-2013/blob/master/sp/src/game/server/func_break.cpp#L922) which works fine except that...
Forum: Plugins 10-29-2022, 11:54
Replies: 1
Views: 2,209
Posted By xerox8521
Re: [L4D2] Level Start Heal - Start Next Level With Full Hp v1.0.3【2022-10-29】

As with the other plugin you could set "First" to true, which is not really descriptive, in OnClientPutInServer and on Spawn you could set the health (if "First" is true) instead of using a game...
Forum: Plugins 10-29-2022, 11:49
Replies: 6
Views: 4,195
Posted By xerox8521
Re: [L4D2] Thirdstrike Glow v1.0.5【2022-10-29】

Cool idea, some things that should be changed though.
Instead of checking if the survivor is on third strike every frame you could just hook revive_success...
Forum: Scripting 10-16-2022, 15:56
Replies: 1
Views: 463
Posted By xerox8521
Permission System question

Hi,

so I wanted to combine SM Groups with Forum Groups however I seem to not understand something or missing something obvious.
When I create the admin entry and bind it to the steam id I still...
Forum: Scripting 10-15-2022, 14:28
Replies: 5
Views: 740
Posted By xerox8521
Re: How to create properly a native for a bool value?

No, notice the red missing paranthesis after RankedMatch. You were calling it like variable instead of a function thus causing the error.

One thing I would personally change is to rename the...
Forum: Scripting 08-20-2022, 09:41
Replies: 1
Views: 564
Posted By xerox8521
SDKTools / DHooks not finding gamerules pointer

Hi,

Game: Zombie Panic Source (mod is build using 2013 sdk)
OS: Linux Ubuntu

so I wanted to setup a virtual hook for a gamerules function. Now upon starting the server I get the error...
Forum: Scripting 08-05-2022, 14:23
Replies: 3
Views: 745
Posted By xerox8521
Re: Dhooks passing int reference to detour

Well, LoadFromAddress requires the address and param.GetAddress from dhooks only works on ptr param types.
So how would I get the address?
Forum: Scripting 08-05-2022, 08:29
Replies: 3
Views: 745
Posted By xerox8521
Dhooks passing int reference to detour

Hi,

It seems to me you cannot pass argument types to functions with dhooks that are passed by reference unless they are virtual.
Well problem is this function CServerGameClients::GetPlayerLimits...
Forum: Scripting 05-28-2022, 21:22
Replies: 2
Views: 951
Posted By xerox8521
Re: disable specific compile warning

If your functions don't return anything you should use void as return type.
Forum: Scripting 05-12-2022, 07:55
Replies: 4
Views: 718
Posted By xerox8521
Re: [CSGO] How to tell if we are < 15 seconds into a round?

In round start you could save the value of GetGameTime and then when you need it later check if GetGameTime - savedStartTime < 15.
Forum: Plugin/Gameplay Ideas and Requests 04-28-2022, 09:53
Replies: 5
Views: 1,289
Posted By xerox8521
Re: L4D2 - for the admin menu help! :c

Try the attached plugin it teleports all survivors to the checkpoint or finale depending on what you chose.

You need ADMFLAG_CHEATS (N) to be able to see the entries.

You will find the entries...
Forum: Scripting 04-09-2022, 09:41
Replies: 6
Views: 927
Posted By xerox8521
Re: float to int stock

You can also convert an integer to a float using the float function.

But in this case you need to use GetEntPropFloat as mentioned above


int myValue = 5;
float myFloatValue = float(myValue);
Forum: Plugin/Gameplay Ideas and Requests 04-08-2022, 06:29
Replies: 3
Views: 458
Posted By xerox8521
Re: Persistent Bot Named XYZ

You could just save the Entity Reference (https://sm.alliedmods.net/new-api/halflife/EntIndexToEntRef) in a variable and then check in OnClientDisconnect if the Entity Reference of the player that...
Forum: Plugin/Gameplay Ideas and Requests 04-08-2022, 06:22
Replies: 10
Views: 1,088
Posted By xerox8521
Re: CSS respawn: the killed join the killer team

Falling off of a map should now respawn you at the normal CT / T Position.

It will also try to place you on the ground directly.

Bonus feature for Linux servers (because the function doesn't...
Forum: Plugin/Gameplay Ideas and Requests 04-06-2022, 16:34
Replies: 10
Views: 1,088
Posted By xerox8521
Re: CSS respawn: the killed join the killer team

This should fix the issue with the unbalanced teams after a round. I played several round with bots it seemed to be fine now.

Because of the fix you need to install DHooks...
Forum: Scripting 04-06-2022, 08:47
Replies: 3
Views: 655
Posted By xerox8521
Re: create a "fake" client with a particular SteamId

You could use sm_addban <time> <steamid> [reason]. If you really need a native you should request one on the github issues page.
Forum: Plugin/Gameplay Ideas and Requests 04-06-2022, 08:24
Replies: 10
Views: 1,088
Posted By xerox8521
Re: CSS respawn: the killed join the killer team

Try the attached plugin will respawn the killed player on the killer's team after a delay which can be configured with sm_kst_respawndelay which defaults to 5 seconds.

Player will receive a chat...
Forum: Extensions 04-06-2022, 07:58
Replies: 883
Views: 699,064
Posted By xerox8521
Re: DHooks (Dynamic Hooks - Dev Preview)

No, l4dhooks direct requires dhooks (the extension). As of SM 1.11.6820 the extension that you would have to install manually is now part of sourcemod that means you don't have to install dhooks...
Forum: Plugin/Gameplay Ideas and Requests 04-05-2022, 04:25
Replies: 2
Views: 639
Posted By xerox8521
Re: [L4D2] question!!

Same as with almost all source engine games. Sourcepawn see here https://wiki.alliedmods.net/Introduction_to_SourceMod_Plugins
Forum: Plugin/Gameplay Ideas and Requests 04-04-2022, 11:52
Replies: 4
Views: 679
Posted By xerox8521
Re: [REQ][CSGO] !medic give +50HP

Yea sorry about that forgot to change something. Try this attached version.
Forum: Plugin/Gameplay Ideas and Requests 04-03-2022, 15:50
Replies: 4
Views: 679
Posted By xerox8521
Re: [REQ][CSGO] !medic give +50HP

Try the attached plugin. Gives 50 HP if the player has the "S" Flag and uses either !medic or !medkit.
By default it can only be used once per round which can be disabled with sm_medic_round_limit...
Showing results 1 to 25 of 310

 
Forum Jump

All times are GMT -4. The time now is 01:29.


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