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

[L4D2] Question Regarding Server Side Weapon Scripts.


Post New Thread Reply   
 
Thread Tools Display Modes
SEGA EMPRESS ERIS
Senior Member
Join Date: Sep 2010
Location: THE-MILKY-WAY-GALAXY
Old 02-01-2021 , 10:52   Re: [L4D2] Question Regarding Server Side Weapon Scripts.
Reply With Quote #21

Quote:
Originally Posted by Marttt View Post
Probably you don't have downtown, also downtown is deprecated after SM and L4D2 updates.

Always check the #include parts in the code

PHP Code:
#include <left4downtown> 
usually changing it to left4dhooks works, Silvers made it compatible.

PHP Code:
#include <left4dhooks> 
Note: you must have left4dhooks.inc in your SM scripting/include folder.
If you don't have, you can download left4dhooks files here
OK in l4d_info_editor.sp it has in the code:
PHP Code:
include <sourcemod>
#include <sdktools>
#include <dhooks> 
do i just add #include of #include <left4dhooks> or replace the dhooks?

also i have the latest dhooks and in the code it isnt specified exactly as u say so im assuming i have to add that in there then i will test, just need a little more verification.

also, is there any code/cvar to increase weapon ready/holster speed?

thx.
__________________

Last edited by SEGA EMPRESS ERIS; 02-01-2021 at 11:03.
SEGA EMPRESS ERIS is offline
SEGA EMPRESS ERIS
Senior Member
Join Date: Sep 2010
Location: THE-MILKY-WAY-GALAXY
Old 02-01-2021 , 12:56   Re: [L4D2] Question Regarding Server Side Weapon Scripts.
Reply With Quote #22

Quote:
Originally Posted by Marttt View Post
Probably you don't have downtown, also downtown is deprecated after SM and L4D2 updates.

Always check the #include parts in the code

PHP Code:
#include <left4downtown> 
usually changing it to left4dhooks works, Silvers made it compatible.

PHP Code:
#include <left4dhooks> 
Note: you must have left4dhooks.inc in your SM scripting/include folder.
If you don't have, you can download left4dhooks files here
Didnt work.
OK i did it like this:
PHP Code:
#include <sourcemod>
#include <sdktools>
#include <dhooks>
#include <left4dhooks> 
before i took out #include <dhooks> but when i did i couldnt compile it, so i put it back in, and added in #include <left4dhooks> it compiled tested it with the lastest SPAS 12 config located in this thread. it did not work.

Also, i compiled the l4d2 attributes it doesnt spit out a .cfg file. i see 2 commands but dont know how to edit this file.

EDIT: managed to edit spas12 bullets to 1 and 20 switched it ingame and the pellets stayed 9 for spas12 in other words, it didnt work.

any other ideas?
__________________

Last edited by SEGA EMPRESS ERIS; 02-01-2021 at 13:13. Reason: EDIT:
SEGA EMPRESS ERIS is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 02-01-2021 , 13:24   Re: [L4D2] Question Regarding Server Side Weapon Scripts.
Reply With Quote #23

I didn't say to add "#include dhooks". I said "#include left4dhooks".

Btw always check the plugin date, this one you linked is from 2015 the last commit, after that we had SM and L4D2 updates (as I already mentioned).

Doing a quick search on github you can find more recent plugins.

Check this one.

About the speed plugins try to search here:

https://www.sourcemod.net/plugins.ph...mod=6&search=1

And check:

[L4D/L4D2]WeaponHandling_API by Lux
__________________

Last edited by Marttt; 02-01-2021 at 13:28.
Marttt is offline
SEGA EMPRESS ERIS
Senior Member
Join Date: Sep 2010
Location: THE-MILKY-WAY-GALAXY
Old 02-01-2021 , 14:12   Re: [L4D2] Question Regarding Server Side Weapon Scripts.
Reply With Quote #24

Quote:
Originally Posted by Marttt View Post
I didn't say to add "#include dhooks". I said "#include left4dhooks".

Btw always check the plugin date, this one you linked is from 2015 the last commit, after that we had SM and L4D2 updates (as I already mentioned).

Doing a quick search on github you can find more recent plugins.

Check this one.

About the speed plugins try to search here:

https://www.sourcemod.net/plugins.ph...mod=6&search=1

And check:

[L4D/L4D2]WeaponHandling_API by Lux
ok installed the latest l4d2 weapon attributes same thing, able to edit values in game did rcon sm_weapon_attributes shotgun_spas it displays attributes then did:
rcon sm_weapon shotgun_spas bullets 1 still fires 9 pellets. however, in the attributes it reports 1 bullet.

also is there any prerequisites for this plugin? i googled it only shows up in L4D2-Competitive-Rework-master but it says its a test rework not an actual live game.

anyway if these plugins dont work again i just need intel on how to make a spas 12 shotgun perform like a slug ammo fed shotgun. basically making it fire 1 bullet it recognizes dmg cvar already so i can just slap 270 dmg there then i can test range and range modifier values and pellet cvars and spread need to work too i have those at 1 value.

any help is appreciated.
__________________

Last edited by SEGA EMPRESS ERIS; 02-01-2021 at 14:13.
SEGA EMPRESS ERIS is offline
Shao
Senior Member
Join Date: Jan 2015
Old 03-03-2021 , 14:46   Re: [L4D2] Question Regarding Server Side Weapon Scripts.
Reply With Quote #25

The accuracy changes "do" work, the problem with this method is that it highlights the weakness in source engine scripts.

People "need" the scripts locally also to reflect on the changes visually, otherwise they conflict with the server side always coming on top. Ammo count for example will go to whatever the client has in it's scripts then adjust to the server values, reloads do the same thing if you interrupt them with a shove, it'll keep playing what the client is having in the back with the animation going back to it's original run time except you'll be able to shoot through it. You can see where this is going, bullet count will be no better.

Accuracy is the worst of the bunch as it desyncs everything visually, bullets won't go where they truly land constantly even though the gun is or isn't accurate.
Shao 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 21:39.


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