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

[L4D & L4D2] Physics fix [9-August-2013]


Post New Thread Reply   
 
Thread Tools Display Modes
Jason Johns
Junior Member
Join Date: Sep 2011
Old 02-15-2012 , 01:42   Re: [L4D & L4D2] Physics fix
Reply With Quote #11

Can you let witches walk and cry in night?
Jason Johns is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 05-16-2013 , 21:10   Re: [L4D & L4D2] Physics fix
Reply With Quote #12

Hi there,

if you want your plugin approved, please change the following :

You have a possible race condition with other plugins OnEntityCreated. i.e. :

plugin create timer (L193/214); 2nd plugin is executed; screw up and kill the entity; Valve entity management is done (slot is cleared); just before timer is executed, another entity is created with the timer's arg's id; then timer execute on a bad entity with the same initial ID.

To correct this behaviour, you can use EntRefToEntIndex and EntIndexToEntRef, which are the ~~equivalent of GetClientSerial-GetClientFromSerial or GetClientUserId-GetClientOfUserId for clients.

(Not needed for approval) Also, if you want to optimize your plugin, you can change your "Format" for "strcopy"; which speed up string copies. You could also add some "else" before those "if" on L209 and L211.
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work
RedSword is offline
disawar1
AlliedModders Donor
Join Date: Aug 2011
Location: Russian
Old 08-09-2013 , 07:13   Re: [L4D & L4D2] Physics fix [9-August-2013]
Reply With Quote #13

Thanks I made changes!
__________________
disawar1 is offline
BloodyBlade
Senior Member
Join Date: Feb 2018
Old 08-20-2019 , 10:40   Re: [L4D & L4D2] Physics fix [9-August-2013]
Reply With Quote #14

* Converted plugin source to the latest syntax. Requires SourceMod 1.8 or newer.
Attached Files
File Type: sp Get Plugin or Get Source (fix_Physics.sp - 115 views - 10.2 KB)

Last edited by BloodyBlade; 10-24-2022 at 09:11.
BloodyBlade is offline
KadabraZz
Senior Member
Join Date: May 2020
Old 07-08-2020 , 19:40   Re: [L4D & L4D2] Physics fix [9-August-2013]
Reply With Quote #15

I took the latest version posted and added the gascan
I recommend using the physics_timer cvar in 1
Attached Files
File Type: sp Get Plugin or Get Source (fix_Physics.sp - 408 views - 10.4 KB)

Last edited by KadabraZz; 07-08-2020 at 19:41.
KadabraZz is offline
MasterMe
Member
Join Date: Mar 2010
Location: Netherlands
Old 10-25-2020 , 23:01   Re: [L4D & L4D2] Physics fix [9-August-2013]
Reply With Quote #16

Quote:
Originally Posted by KadabraZz View Post
I took the latest version posted and added the gascan
I recommend using the physics_timer cvar in 1
Heads-up, I was having big issues with scavenge on my server, gas cans didn't glow or respawn and were not the orange colour, instead just standard red. It turns out this version causes this. Respawning scavenge gas cans breaks many things, I don't think the level scripts like it.

If there is a way to check if a gas can is scavenge type this could fix it, but for now it's best to not touch the gascan at all, like previous version did. After I used the version by BloodyBlade all problems went away and scavenge is 100% working again.

Edit: There is a method to check, see https://forums.alliedmods.net/showthread.php?t=328100. I still believe some level scripts don't like the respawning, so myself I disabled the plugin.
__________________

Last edited by MasterMe; 10-27-2020 at 12:24.
MasterMe is offline
Tonblader
Senior Member
Join Date: Jul 2011
Location: Peru
Old 11-17-2020 , 12:45   Re: [L4D & L4D2] Physics fix [9-August-2013]
Reply With Quote #17

When i use this plugin with Spawn weapon plugin, are not affected by damage, they are invulnerable.

Example:
sm_sw propanetank 20
or spam this other command:
sm_gw @me

Spawn 20 propanetanks and are not affected by damage, they are invulnerable.
Tonblader is offline
z282846139
Member
Join Date: Aug 2018
Old 01-05-2023 , 12:08   Re: [L4D & L4D2] Physics fix [9-August-2013]
Reply With Quote #18

Quote:
Originally Posted by BloodyBlade View Post
* Converted plugin source to the latest syntax. Requires SourceMod 1.8 or newer.
Code:
Compiling fix_Physics.sp...
SourcePawn Compiler 1.11.0.6924
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2021 AlliedModders LLC

fix_Physics.sp(129) : warning 242: function "PF_t_WhellBarrow" should return an explicit value
fix_Physics.sp(129) : warning 242: function "PF_t_WhellBarrow" should return an explicit value
fix_Physics.sp(146) : warning 242: function "PF_t_RecreateThis" should return an explicit value
fix_Physics.sp(146) : warning 242: function "PF_t_RecreateThis" should return an explicit value
Code size:         7048 bytes
Data size:         3324 bytes
Stack/heap size:      16568 bytes
Total requirements:   26940 bytes

4 Warnings.
z282846139 is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 01-05-2023 , 16:48   Re: [L4D & L4D2] Physics fix [9-August-2013]
Reply With Quote #19

Use Weapon Prop Give Fix by Marttt instead.
__________________
HarryPotter is offline
replay_84
Senior Member
Join Date: Jun 2021
Old 01-06-2023 , 04:12   Re: [L4D & L4D2] Physics fix [9-August-2013]
Reply With Quote #20

Will this fix that fuel or gastanks sometimes can't be trown on higher tickrate servers in l4d1? Or does someone know a fix?
replay_84 is offline
Reply



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 22:09.


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