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

[L4D & L4D2] Prototype Grenades (1.46) [22-Nov-2023]


Post New Thread Reply   
 
Thread Tools Display Modes
AK978
Senior Member
Join Date: Jun 2018
Old 02-29-2020 , 18:33   Re: [L4D & L4D2] Prototype Grenades (1.20) [29-Feb-2020]
Reply With Quote #91

I want to enable it only for specified players.how to set?
Only use command enable it.

Last edited by AK978; 02-29-2020 at 18:41.
AK978 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 02-29-2020 , 18:39   Re: [L4D & L4D2] Prototype Grenades (1.20) [29-Feb-2020]
Reply With Quote #92

uhm, you changed your message

PHP Code:
        // Change grenade mode: 1=Pressing SHOOT (LMB) + SHOVE (RMB). 2=Menu from sm_grenade command. 3=Both. 4=Both and show menu while pressing key combination.
        
"mode_switch"            "4"


        
// 0=Grenade is stock on equip. 1=Save and load a clients selected mode with client preferences. 2=Give random grenade mode when picking up. 3=Give random grenade without being able to change them.
        // Randomly selected grenade types will persist even when a player drops and picks them up, however:
        // Bugs: They do not persist when using some !drop plugins, which must be edited to transfer the "m_iHammerID" value to support.
        // The latest Gear Transfer plugin version will maintain the type.
        
"preferences"            "1" 
2 and 0. Add sm_grenade command override. Other than that theres no client specific.
__________________

Last edited by Silvers; 02-29-2020 at 18:44.
Silvers is offline
AK978
Senior Member
Join Date: Jun 2018
Old 02-29-2020 , 19:00   Re: [L4D & L4D2] Prototype Grenades (1.20) [29-Feb-2020]
Reply With Quote #93

"mode_switch" "2"
Seems to affect others, I will test again.
AK978 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 03-01-2020 , 13:49   Re: [L4D & L4D2] Prototype Grenades (1.20) [29-Feb-2020]
Reply With Quote #94

The current method causes lag? From my testing theres no difference between that method and the one I use.
__________________
Silvers is offline
foxhound27
AlliedModders Donor
Join Date: Sep 2019
Location: Argentina
Old 03-01-2020 , 13:54   Re: [L4D & L4D2] Prototype Grenades (1.20) [29-Feb-2020]
Reply With Quote #95

yes been causing too much lag so i decided to change precache method and it worked perfectly
foxhound27 is offline
foxhound27
AlliedModders Donor
Join Date: Sep 2019
Location: Argentina
Old 03-01-2020 , 13:59   Re: [L4D & L4D2] Prototype Grenades (1.20) [29-Feb-2020]
Reply With Quote #96

so crazy because its practically the same not sure why this remove the lag, but it does im still trying to figure o.o

game > L4D2

Last edited by foxhound27; 03-01-2020 at 19:21. Reason: game
foxhound27 is offline
hoanganh81097
Senior Member
Join Date: Apr 2016
Old 03-02-2020 , 02:02   Re: [L4D & L4D2] Prototype Grenades (1.20) [29-Feb-2020]
Reply With Quote #97

When i throw Grenades, e.g Bomb, FireWork. My server delay 0.5-1s. I dont know why @@
Maybe because ParticleEffect ?
hoanganh81097 is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 03-02-2020 , 09:51   Re: [L4D & L4D2] Prototype Grenades (1.20) [29-Feb-2020]
Reply With Quote #98

Quote:
Originally Posted by Silvers View Post
The current method causes lag? From my testing theres no difference between that method and the one I use.
From my tests too, but it looks like it is required.

foxhound27, also, you are using PrecacheGeneric in wrong way. There must be pcf file path, not effect.
You can see example of using (and pcf-to-effects correlation) here: https://forums.alliedmods.net/showpo...38&postcount=2

(credits to Dr. Api), much more earlier work than mentioned GamerX.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 03-02-2020 , 22:05   Re: [L4D & L4D2] Prototype Grenades (1.21) [03-Mar-2020]
Reply With Quote #99

I didn't think my Precache Particle function was at fault. Otherwise the 20 other plugins I've released would have had problems with the same function and surely been reported by now.

So I looked into it, I missed precaching 2 particles. I had previously extensively tested the function so I'm sure it's fine. I've now tested every grenade for any lag they cause and see nothing anymore. I also tested this whilst removing every other plugin to make sure all effects used had not been cached elsewhere.

Thanks to "foxhound27" for reporting and testing this update.

Code:
1.21 (03-Mar-2020)
	- Fixed 2 particles missing from being precached. Thanks to "foxhound27" for reporting.
__________________

Last edited by Silvers; 03-02-2020 at 22:05.
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 05-10-2020 , 10:00   Re: [L4D & L4D2] Prototype Grenades (1.23) [10-May-2020]
Reply With Quote #100

Code:
1.23 (10-May-2020)
    - Added better error log message when gamedata file is missing.
    - Added random grenade spin when thrown if Left4DHooks is detected.
    - Extra checks to prevent "IsAllowedGameMode" throwing errors.
    - Fixed grenades not sticking if enabled, unless they hit a client.
    - Various changes to tidy up code.
    - Various optimizations and fixes.
(also 120 of 125 my plugins updated lol)
__________________

Last edited by Silvers; 05-11-2020 at 04:07.
Silvers 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 16:41.


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