Raised This Month: $51 Target: $400
 12% 

[L4D2] Question Regarding Server Side Weapon Scripts.


Post New Thread Reply   
 
Thread Tools Display Modes
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 11-01-2020 , 23:35   Re: [L4D2] Question Regarding Server Side Weapon Scripts.
Reply With Quote #11

Your config won't work as it has nothing in it. Your data is being read as a comment.

Go to line 76 and 327 and remove the comments.

Anything between "/*" and "*/" is read as a comment as is ignored by the parser.
__________________
Spirit_12 is offline
SEGA EMPRESS ERIS
Senior Member
Join Date: Sep 2010
Location: THE-MILKY-WAY-GALAXY
Old 11-02-2020 , 00:04   Re: [L4D2] Question Regarding Server Side Weapon Scripts.
Reply With Quote #12

Quote:
Originally Posted by Spirit_12 View Post
Your config won't work as it has nothing in it. Your data is being read as a comment.

Go to line 76 and 327 and remove the comments.

Anything between "/*" and "*/" is read as a comment as is ignored by the parser.
i took the comments out still nothing in it worked, no clip size increase from 50 - 60 on the mp5 and no accuracy improvement on the smgs or tier 2 rifles while moving.
Attached Files
File Type: cfg l4d_info_editor_weapons.cfg (13.1 KB, 122 views)
__________________

Last edited by SEGA EMPRESS ERIS; 11-02-2020 at 00:05.
SEGA EMPRESS ERIS is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 11-02-2020 , 03:18   Re: [L4D2] Question Regarding Server Side Weapon Scripts.
Reply With Quote #13

lol dude u are ignoring me, I already paste twice, two files working...pay attention
__________________
Marttt is offline
SEGA EMPRESS ERIS
Senior Member
Join Date: Sep 2010
Location: THE-MILKY-WAY-GALAXY
Old 11-02-2020 , 06:20   Re: [L4D2] Question Regarding Server Side Weapon Scripts.
Reply With Quote #14

Quote:
Originally Posted by Marttt View Post
lol dude u are ignoring me, I already paste twice, two files working...pay attention
SORRY ok i tried it the smg clip size worked it went from 50 to 60 and stayed at 60 rounds in live play HOWEVER if i could get smg accuracy mods to work like the clip size that would be great. i plan on doing all tier 2 rifles as well with atleast "MaxMovementSpread" "0.45" thats on the smg but the rifles are little different i will test around the numbers if i ever get them to work to see which accuracy value is positive to the one i like. in other words the only thing that worked was the smg clip size i need accuracy mods to work or need commands to make accuracy mods like the crosshair of smgs, tier 2 rifles / cone of fire smaller on run, for all rifles and smgs and crouch and standing on smgs. thank you for your help.
PHP Code:
"weapon_smg_mp5"
        
{
            
"clip_size"                    "60"
            "ReloadDuration"            "2.0"
            "CycleTime"                "0.075"
            "Damage"                    "30"
            "Range"                    "2500"
            "RangeModifier"                "0.84"
            "VerticalPunch"                "1"
            "SpreadPerShot"            "0.35"
            "MaxSpread"                "25"
            "SpreadDecay"                "0.3"
            "MinDuckingSpread"            "0.03"
            "MinStandingSpread"            "0.3"
            "MinInAirSpread"            "0.7"
            "MaxMovementSpread"        "0.45"
        

__________________

Last edited by SEGA EMPRESS ERIS; 11-02-2020 at 06:21.
SEGA EMPRESS ERIS is offline
SEGA EMPRESS ERIS
Senior Member
Join Date: Sep 2010
Location: THE-MILKY-WAY-GALAXY
Old 11-06-2020 , 04:08   Re: [L4D2] Question Regarding Server Side Weapon Scripts.
Reply With Quote #15

Quote:
Originally Posted by Marttt View Post
lol dude u are ignoring me, I already paste twice, two files working...pay attention
ok i got the whole thing working when i switched to notepad++ from visual studio and switched to c++ saw they were all commented out like u said. however the accuracy mods dont work if u insert them example:
PHP Code:
"SpreadPerShot"            "0.35"
"MaxSpread"                "25"
"SpreadDecay"                "0.3"
"MinDuckingSpread"            "0.03"
"MinStandingSpread"            "0.3"
"MinInAirSpread"            "0.7"
"MaxMovementSpread"        "0.45" 
anyone know how to get these to work in the guns? they are in the original weapon script files from the .vpks but maybe it requires a programmer to program them in like in the code or maybe im doing it wrong again, anyway need assistance, any is appreciated.
__________________

Last edited by SEGA EMPRESS ERIS; 11-06-2020 at 04:12. Reason: thx again
SEGA EMPRESS ERIS is offline
SEGA EMPRESS ERIS
Senior Member
Join Date: Sep 2010
Location: THE-MILKY-WAY-GALAXY
Old 11-10-2020 , 12:22   Re: [L4D2] Question Regarding Server Side Weapon Scripts.
Reply With Quote #16

alright only 1 problem left, anyway everything works except the accuracy mods in the mp5 script area. does anyone know how i can get these to work? as i see them in the regular script file of the game. and this plugin says u can add stuff in thats not there.

I attached the cfg. oh and yeah i used notepad++ and used C++ language.
Attached Files
File Type: cfg l4d_info_editor_weapons.cfg (11.8 KB, 75 views)
__________________
SEGA EMPRESS ERIS is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 11-10-2020 , 17:02   Re: [L4D2] Question Regarding Server Side Weapon Scripts.
Reply With Quote #17

Some configs actually there is no effect in-game besides existing in the .txt file.

Also, what works in a weapon may not work for another.

I don't know if the accuracy is one of them.

When you say accuracy, what effect are expecting? Similar effect to laser sights?
__________________
Marttt is offline
SEGA EMPRESS ERIS
Senior Member
Join Date: Sep 2010
Location: THE-MILKY-WAY-GALAXY
Old 11-13-2020 , 06:05   Re: [L4D2] Question Regarding Server Side Weapon Scripts.
Reply With Quote #18

Quote:
Originally Posted by Marttt View Post
Some configs actually there is no effect in-game besides existing in the .txt file.

Also, what works in a weapon may not work for another.

I don't know if the accuracy is one of them.

When you say accuracy, what effect are expecting? Similar effect to laser sights?
Yep, but without using them, or, improved accuracy in additon to using lasers

thx
__________________
SEGA EMPRESS ERIS is offline
SEGA EMPRESS ERIS
Senior Member
Join Date: Sep 2010
Location: THE-MILKY-WAY-GALAXY
Old 02-01-2021 , 09:59   Re: [L4D2] Question Regarding Server Side Weapon Scripts.
Reply With Quote #19

I tried to compile this plugin but it didnt work, anyone know what i need to get it to compile? (from the first page, 2nd post)
https://github.com/Attano/L4D2-Compe..._attributes.sp

reason im asking is, i tried to modify SPAS 12 Shotgun to utilize "Slug" Ammunition server side through this plugin.
https://forums.alliedmods.net/showthread.php?p=2614626

i made sure through notepad++ the code wasnt commented out for the SPAS Shotgun:
PHP Code:
"weapon_shotgun_spas"
        
{
            
"clip_size"                    "10"
            "ReloadDuration"            "0.396"
            "CycleTime"                "0.15"
            "Damage"                    "270"
            "Range"                    "1000"
            "RangeModifier"                "0.2"
            "Bullets"                    "1"
            "SpreadPerShot"            "1"
            "PelletScatterPitch"                "1"
            "PelletScatterYaw"            "1"
        

It didnt work. anyone know what i need to do to get that to work? basically for SPAS shotgun to fire one round (Slug Ammunition for a Shotgun) the damage variable works however the pellets still spread ingame.

what didnt work specifically for the shotguns were, "ReloadDuration" lowering it didnt improve its reload speed, (i used 0.297 and 0.196) reloaded the same. and lowering "Bullets" (pellets per shot, default was 9) stayed at 9, didnt go to 1 bullet. "SpreadPerShot"
(default 22) "PelletScatterPitch" (default 3.5) "PelletScatterYaw" (default 8.0)

Any ideas?
__________________
SEGA EMPRESS ERIS is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 02-01-2021 , 10:19   Re: [L4D2] Question Regarding Server Side Weapon Scripts.
Reply With Quote #20

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
__________________
Marttt 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 10:37.


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