Raised This Month: $87 Target: $400

[L4D2] entities deleting themselves

Post New Thread Reply   
Thread Tools Display Modes
Author Message
Junior Member
Join Date: Jun 2019
Old 10-23-2019 , 00:37   [L4D2] entities deleting themselves
Reply With Quote #1

I really like the idea behind original l4d2 portals plugin, however that version isn't really suitable for versus and in my experience had some major glitches, so I decided to create my own.

currently what I have works perfectly 99% of the time.

I have 4 commands to use them.

sm_startportals - create both
sm_red, sm_blue - move them
sm_killportals - delete both

you can create them, you can move them, you can destroy them and recreate them over and over again however you want but eventually the whole thing breaks. 1 or both portals will go missing and then you cant even kill them and reset it, you can still move the remaining one but it no longer works as a portal.

it typically happens after a tank goes through them but its not 100% consistent.

I have no idea why it happens, the portals are stored in an entref however the portal entities themselves seem to get deleted for no apparent reason.

ive been trying to fix it for a long tme but nothing I do seems to work, please help.
Attached Files
File Type: sp Get Plugin or Get Source (portals4.sp - 31 views - 8.2 KB)
rekcah is offline
Veteran Member
Join Date: Jan 2015
Location: Brexit
Old 10-23-2019 , 03:53   Re: [L4D2] entities deleting themselves
Reply With Quote #2

I made some changes to what i think would be better on how i would do this type of thing and reason in code comments, i'v not tested it i may of just broken it idc i tried to remain faithful to your code and not remove too much.

Here is diff vs current code of posting and my changes.
Attached Files
File Type: sp Get Plugin or Get Source (portals4.sp - 32 views - 9.4 KB)
Lux is offline

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

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