AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Solved null (https://forums.alliedmods.net/showthread.php?t=338168)

alasfourom 06-13-2022 05:01

null
 
null

alasfourom 07-04-2022 21:52

Re: [L4D2] Speed Booster
 
Quote:

Issue:
- Need to disable plugin when special infected are using their abilities (Chargers, Smokers, Jockeys, Hunters)
- When boosting speed, movements looks awkward > because it fires multiple times
If someone can help me fix these issues I would really appreciate it

Thanks

Marttt 07-05-2022 11:13

Re: [L4D2] Speed Booster
 
For Tank, I used m_flStamina once to detect, but don't know if is the best way to check it.

Example:
PHP Code:

if (GetEntPropFloat(clientProp_Send"m_flStamina") > 0)
// do (or not) something 


alasfourom 07-05-2022 14:15

Re: [L4D2] Speed Booster
 
Thanks Marttt,

I tried to use HookEvent, because I want to disable it once charging start not necessary when charging a survivor

PHP Code:

    HookEvent ("charger_charge_start"Event_InfectedAbilityStart);
    
HookEvent ("charger_pummel_start"Event_InfectedAbilityStart);
    
HookEvent ("choke_start",     Event_InfectedAbilityStart);
    
HookEvent ("lunge_pounce"Event_InfectedAbilityStart);
    
HookEvent ("jockey_ride"Event_InfectedAbilityStart); 

I'm a bit confused with it, tried many ways but not sure how to make it work.

PHP Code:

public void Event_InfectedAbilityStart (Event event, const char[] namebool dontBroadcast)
{
    
int client GetClientOfUserId (event.GetInt("userid"));
    if (
client && IsClientInGame(client) && !IsFakeClient(client) && IsInfected(client))
    {
        
Speeding [client] = false;
        
SetEntPropFloat (clientProp_Data"m_flLaggedMovementValue"1.0);
    }
    return;


I tried different ways but still didnt work for me

alasfourom 07-08-2022 22:46

Re: [L4D2] Speed Booster
 
Updated

- You can enable/disable speed boost for each team survivors/infected
- Adjust the speed boost for each team
- Change jump Hight when using speed boost
- Adjust each survivors / infected normal jump height

eyal282 07-12-2022 05:51

Re: [L4D2] Issue - Player Booster - Shift Boost Your Speed
 
2 Attachment(s)
Shekels are good, shekels are nice.

alasfourom 07-12-2022 12:19

Re: [L4D2] Issue - Player Booster - Shift Boost Your Speed
 
The issue was "buttons &= ~IN_SPEED; "

Removed it and its smooth now thanks

alasfourom 07-13-2022 02:31

Re: [L4D2] Issue - Player Booster - Shift Boost Your Speed
 
Updated - Concept The Same

- Now its triggered by killing infected rather than when holding Shift Button

L4D2Noob 07-18-2022 18:55

Re: [L4D2] Killing Special Infected Will Boost Your Speed
 
PHP Code:

BlamingL4D2_Hazard_Suit.smx
Call stack trace
:
SetEntPropFloat
Line 67
D:\sm111\addons\sourcemod\scripting\L4D2_Hazard_Suit.sp::StopClientEngine 



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

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