Raised This Month: $ Target: $400
 0% 

Speed ​​and long jumps [Zombie Panic Source]


Post New Thread Reply   
 
Thread Tools Display Modes
ORdli
Member
Join Date: Nov 2021
Old 12-14-2022 , 05:57   Re: Speed ​​and long jumps [Zombie Panic Source]
Reply With Quote #11

Quote:
Originally Posted by Gummy6eaR View Post
My God, I don’t believe that such petty people exist, who asked you for money for a plugin that can be written in 5 minutes, a person should have such an overestimated self-esteem to ask for money for such a plugin, give these dogs 2 dollars, let them buy themselves bone...

Take it for free...


public OnPluginStart()
{
HookEvent("player_spawn", Event_OnPlayerSpawn);
}

public Action:Event_OnPlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));

if(GetClientTeam(client) == 2) SetEntPropFloat(client, Prop_Data, "m_flLaggedMovementValue", 3.0);
}

This works thanks a lot, but it works for the whole zombie team, and I only wanted to do it for the main zombie...
ORdli is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-14-2022 , 17:36   Re: Speed ​​and long jumps [Zombie Panic Source]
Reply With Quote #12

Here is one versio.
This plugin could crash server.

- Change Zombie-Carrier jump velocity
- Change Zombie-Carrier movement speed, when spawn


Two cvars with default values.
Code:
"sm_zps_carrier_movespeed" = "1.3"
 - Scale for increase or decrease move speed

"sm_zps_carrier_jumpscale" = "1.5"
 - Scale for increase or decrease jump velocity

Use cvar like this, sm_zps_carrier_jumpscale 1.0
- 1.0 value would be normal speed/velocity



This works on operation system Windows. I have not tested on Linux.
This hook Gamemovement callback: bool CZP_GameMovement::CheckJumpButton(void), to recognize when player make jump.
- Because this game is missing some normal events.
- Dunno why, but player_spawn "userid" is always 0. Plugin look "entindex" instead.

If someone is willing to try on Linux, give feedback. Because it use offset value and I don't know is it same as on Windows (properly not). Second option is offset 0x8 I guess ?



*edit
Seems web compiler can not compile dhook.
I added compiled version
Code:
SourcePawn Compiler 1.11.0.6924
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2021 AlliedModders LLC

Code size:         6620 bytes
Data size:         2928 bytes
Stack/heap size:      16820 bytes
Total requirements:   26368 bytes
Attached Files
File Type: txt zps_test.games.txt (383 Bytes, 23 views)
File Type: sp Get Plugin or Get Source (test.sp - 30 views - 3.2 KB)
File Type: smx test.smx (5.2 KB, 18 views)
__________________
Do not Private Message @me

Last edited by Bacardi; 12-14-2022 at 17:40.
Bacardi is offline
ORdli
Member
Join Date: Nov 2021
Old 12-14-2022 , 19:03   Re: Speed ​​and long jumps [Zombie Panic Source]
Reply With Quote #13

Quote:
Originally Posted by Bacardi View Post
Here is one versio.
This plugin could crash server.

- Change Zombie-Carrier jump velocity
- Change Zombie-Carrier movement speed, when spawn


Two cvars with default values.
Code:
"sm_zps_carrier_movespeed" = "1.3"
 - Scale for increase or decrease move speed

"sm_zps_carrier_jumpscale" = "1.5"
 - Scale for increase or decrease jump velocity

Use cvar like this, sm_zps_carrier_jumpscale 1.0
- 1.0 value would be normal speed/velocity



This works on operation system Windows. I have not tested on Linux.
This hook Gamemovement callback: bool CZP_GameMovement::CheckJumpButton(void), to recognize when player make jump.
- Because this game is missing some normal events.
- Dunno why, but player_spawn "userid" is always 0. Plugin look "entindex" instead.

If someone is willing to try on Linux, give feedback. Because it use offset value and I don't know is it same as on Windows (properly not). Second option is offset 0x8 I guess ?



*edit
Seems web compiler can not compile dhook.
I added compiled version
Code:
SourcePawn Compiler 1.11.0.6924
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2021 AlliedModders LLC

Code size:         6620 bytes
Data size:         2928 bytes
Stack/heap size:      16820 bytes
Total requirements:   26368 bytes

I didn't think you'd answer, the plugin works on Linux, the only error it causes is

"Clamping SetLocalVelocity(228.024872,-617.182983,4044.403809) on cos_merge"

but it does nothing, everything works fine,

P.S Later I will check if the plugin can crash the server if several of these zombies are playing at the same time, or if this command will just spam the server console, but in any case, even if this happens, I can turn off logging, the main thing is that it does not lead to take off when the server is full of people.

I also ask for such plugins for a reason, I don’t hate the developers of this game and at the same time love them, I don’t need these plugins for fun, but in order to change the balance, because every new update they constantly change it

Last edited by ORdli; 12-18-2022 at 16:53.
ORdli is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-14-2022 , 19:34   Re: Speed ​​and long jumps [Zombie Panic Source]
Reply With Quote #14

Show your server sm

sm version
sm exts list
sm plugins list
__________________
Do not Private Message @me
Bacardi is offline
ORdli
Member
Join Date: Nov 2021
Old 12-14-2022 , 19:42   Re: Speed ​​and long jumps [Zombie Panic Source]
Reply With Quote #15

Quote:
Originally Posted by Bacardi View Post
Show your server sm

sm version
sm exts list
sm plugins list
1. SourceMod 1.11.0.6924, by AlliedModders LLC

2.
"Automatic Updater" (1.11.0.6924) by AlliedModders LLC: Updates SourceMod gamedata files
"DHooks" (1.11.0.6924) by AlliedModders LLC: Dynamic Hooks
"Webternet" (1.11.0.6924) by AlliedModders LLC: Extension for interacting with URLs
"BinTools" (1.11.0.6924) by AlliedModders LLC: Low-level C/C++ Calling API
"SDK Tools" (1.11.0.6924) by AlliedModders LLC: Source SDK Tools
"SDK Hooks" (1.11.0.6924) by AlliedModders LLC: Source SDK Hooks
"Top Menus" (1.11.0.6924) by AlliedModders: Creates sorted nested menus
"Client Preferences" (1.11.0.6924) by AlliedModders: Saves client preference settings
"SQLite" (1.11.0.6924) by AlliedModders LLC: SQLite Driver
"GeoIP" (1.11.0.6924) by AlliedModders LLC: Geographical IP information

3. sm plugins list

"Sound Commands" (1.11.0.6924) by AlliedModders LLC
"Nextmap" (1.11.0.6924) by AlliedModders LLC
"Basic Info Triggers" (1.11.0.6924) by AlliedModders LLC
"Advertisements" (2.1.1) by Tsunami
"Basic Commands" (1.11.0.6924) by AlliedModders LLC
"Fun Commands" (1.11.0.6924) by AlliedModders LLC
"Basic Comm Control" (1.11.0.6924) by AlliedModders LLC
"Client Preferences" (1.11.0.6924) by AlliedModders LLC
"Basic Chat" (1.11.0.6924) by AlliedModders LLC
"Fun Votes" (1.11.0.6924) by AlliedModders LLC
To see more, type "sm plugins 11"
] sm plugins 11
"Reserved Slots" (1.11.0.6924) by AlliedModders LLC
"Admin File Reader" (1.11.0.6924) by AlliedModders LLC
"Player Information" (1.1) by Kyle Sanderson
"Show Damage" (1.0.7) by exvel
"Anti-Flood" (1.11.0.6924) by AlliedModders LLC
"PermaMute" (0.1) by Ryan "FLOOR_MASTER" Mannion
"Admin Menu" (1.11.0.6924) by AlliedModders LLC
"Player Commands" (1.11.0.6924) by AlliedModders LLC
"Basic Ban Commands" (1.11.0.6924) by AlliedModders LLC
"Basic Votes" (1.11.0.6924) by AlliedModders LLC
"Admin Help" (1.11.0.6924) by AlliedModders LLC
"test.smx"

its all.

Last edited by ORdli; 12-14-2022 at 19:44.
ORdli is offline
ORdli
Member
Join Date: Nov 2021
Old 12-14-2022 , 21:31   Re: Speed ​​and long jumps [Zombie Panic Source]
Reply With Quote #16

Quote:
Originally Posted by Bacardi View Post
Show your server sm

sm version
sm exts list
sm plugins list
these are all plugins

Last edited by ORdli; 12-18-2022 at 16:56. Reason: cl_defaultweapon not worked.
ORdli is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-14-2022 , 21:39   Re: Speed ​​and long jumps [Zombie Panic Source]
Reply With Quote #17

ok. so you not see any errors in SM logs ?
You can try set cvars scale to 2.0 to see effect, or even 3.0

---------------
Anyway, I would like you to use this debug version instead, for short time.
Need at least one player to jumping, maybe as zombie-carrier.

This will log some info into sourcemod logs. I would like to see what it gives.

After that you can remove it from server. Show log outputs in here.
Look like this


Problem is, I can get Linux version server running on my windows-terminal.
I need assembly another PC and install Linux on it. :bee:
Attached Files
File Type: smx test.smx (5.4 KB, 23 views)
File Type: sp Get Plugin or Get Source (test.sp - 23 views - 4.1 KB)

Last edited by Bacardi; 12-14-2022 at 21:40.
Bacardi is offline
ORdli
Member
Join Date: Nov 2021
Old 12-14-2022 , 21:47   Re: Speed ​​and long jumps [Zombie Panic Source]
Reply With Quote #18

Quote:
Originally Posted by Bacardi View Post
ok. so you not see any errors in SM logs ?
You can try set cvars scale to 2.0 to see effect, or even 3.0

---------------
Anyway, I would like you to use this debug version instead, for short time.
Need at least one player to jumping, maybe as zombie-carrier.

This will log some info into sourcemod logs. I would like to see what it gives.

After that you can remove it from server. Show log outputs in here.
Look like this


Problem is, I can get Linux version server running on my windows-terminal.
I need assembly another PC and install Linux on it.
The logs are clean, there are no messages, only messages about changing the map and messages about connected players, that error has become less common in the server console, but it does not affect anything, I think everything is in order, I will report if there are errors
ORdli is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-14-2022 , 22:25   Re: Speed ​​and long jumps [Zombie Panic Source]
Reply With Quote #19

Not even this message ?
Code:
L 12/15/2022 - 05:10:41: [test.smx] debug: OnPluginStart, folder zps, data 12500063, addr 141877B0, DCheckJumpButton 12600033

Reload plugin.
sm plugins reload test


Could you mention, you are running Source Dedicated Server (SRCDS) ?
Not any in-game listen server.
__________________
Do not Private Message @me
Bacardi is offline
ORdli
Member
Join Date: Nov 2021
Old 12-15-2022 , 07:23   Re: Speed ​​and long jumps [Zombie Panic Source]
Reply With Quote #20

Quote:
Originally Posted by Bacardi View Post
Not even this message ?
Code:
L 12/15/2022 - 05:10:41: [test.smx] debug: OnPluginStart, folder zps, data 12500063, addr 141877B0, DCheckJumpButton 12600033

Reload plugin.
sm plugins reload test


Could you mention, you are running Source Dedicated Server (SRCDS) ?
Not any in-game listen server.
I restarted the server, turned on logging and debugging, nothing, everything is clean.
ORdli is offline
Reply


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 05:48.


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