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

[L4D & L4D2] Prototype Grenades (1.47) [21-Apr-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
KRUTIK
Senior Member
Join Date: Feb 2019
Location: Мос
Old 11-01-2019 , 01:59   Re: [L4D & L4D2] Prototype Grenades (1.10) [01-Nov-2019]
Reply With Quote #41

SourceMod error session started
L 11/01/2019 - 08:56:11: Info (map "c2m1_highway") (file "errors_20191101.log")
L 11/01/2019 - 08:56:11: [SM] Error parsing gameconfig file "/game/left4dead2/addons/sourcemod/gamedata/l4d_grenades.txt":
L 11/01/2019 - 08:56:11: [SM] Error 1 on line 0, col 0: Stream failed to open
L 11/01/2019 - 08:56:11: [SM] Exception reported: Unable to open l4d_grenades: File could not be opened: No such file or directory
L 11/01/2019 - 08:56:11: [SM] Blaming: l4d_grenades.smx
L 11/01/2019 - 08:56:11: [SM] Call stack trace:
L 11/01/2019 - 08:56:11: [SM] [0] LoadGameConfigFile
L 11/01/2019 - 08:56:11: [SM] [1] Line 399, C:\Servers\L4D2\left4dead2\addons\sourcemod\s cripting\l4d_grenades.sp::OnPluginStart
L 11/01/2019 - 08:56:11: [SM] Unable to load plugin "l4d_grenades.smx": Error detected in plugin startup (see error logs)
KRUTIK is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-01-2019 , 02:03   Re: [L4D & L4D2] Prototype Grenades (1.10) [01-Nov-2019]
Reply With Quote #42

Quote:
Originally Posted by KRUTIK View Post
[SM] Error parsing gameconfig file "/game/left4dead2/addons/sourcemod/gamedata/l4d_grenades.txt":

[SM] Exception reported: Unable to open l4d_grenades: File could not be opened: No such file or directory

Read the error, you're missing the gamedata.
__________________
Silvers is offline
KRUTIK
Senior Member
Join Date: Feb 2019
Location: Мос
Old 11-04-2019 , 00:37   Re: [L4D & L4D2] Prototype Grenades (1.10) [01-Nov-2019]
Reply With Quote #43

Thanks, everything works fine.
KRUTIK is offline
Voevoda
Senior Member
Join Date: Aug 2016
Old 11-05-2019 , 07:20   Re: [L4D & L4D2] Prototype Grenades (1.10) [01-Nov-2019]
Reply With Quote #44

hi how to do just this


"targets" "???" // Who to affect with damage. 1=Common Infected. 2=Survivors. 4=Special Infected. 8=Tank. 16=Witch
Voevoda is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 11-05-2019 , 09:32   Re: [L4D & L4D2] Prototype Grenades (1.10) [01-Nov-2019]
Reply With Quote #45

You have to add the numbers together for multiple combinations

For example:

You only want to target Survivors

"targets" "2"

You want to target Survivors and Special Infected

"targets" "6" (2 => Survivors + 4 => Special Infected)

If you still didn't understand, u can find more info searching for "bitwise operator" on the internet.
__________________

Last edited by Marttt; 11-05-2019 at 11:27.
Marttt is offline
phoenix0001
Senior Member
Join Date: Apr 2010
Location: China
Old 11-07-2019 , 09:02   Re: [L4D & L4D2] Prototype Grenades (1.10) [01-Nov-2019]
Reply With Quote #46

Players can equip a grenade and hold SHOOT (LMB) + SHOVE (RMB) keys to change grenade type.
When you use the mode of 2 keys combination, it is very troublesom.
It should be set to press the middle mouse button to select the type of grenade.
Just like your howitzer plug-in, press the middle mouse button to select.
https://forums.alliedmods.net/showth...75241?t=175241

grenades.phrases.txt
The description can be described in detail like a howitzer. Now the description document is about the type of a hand grenade, lacking the description and use of each type in detail like a howitzer.

For details, please refer to flaregun.phrases.txt
__________________
I like this BBS sharing of spirit

I come from China, my English is poor

Last edited by phoenix0001; 11-07-2019 at 10:00.
phoenix0001 is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 11-09-2019 , 10:34   Re: [L4D & L4D2] Prototype Grenades (1.10) [01-Nov-2019]
Reply With Quote #47

when I test in l4d1,
I throw a "Shield" grenade
it seems that it doesn't reduces damage inside area
so I change your source code here. it works for me

line4218:
PHP Code:
(index == INDEX_SHIELD && strcmp(classname"player")) 
this should be
PHP Code:
(index == INDEX_SHIELD && strcmp(classname"player") == 0
__________________
HarryPotter is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-09-2019 , 17:51   Re: [L4D & L4D2] Prototype Grenades (1.10) [01-Nov-2019]
Reply With Quote #48

Quote:
Originally Posted by fbef0102 View Post
-
Quote:
1.11 (07-Nov-2019)
- Small optimizations.
- Fixed breaking on round restart.
- Fixed Shield type not working. Thanks to "fbef0102" for reporting.
Quote:
1.12 (10-Nov-2019)
- Fixed breaking client preferences after map change due to last version fixes.
Thank you, fixed.
__________________

Last edited by Silvers; 11-10-2019 at 00:04.
Silvers is offline
Voevoda
Senior Member
Join Date: Aug 2016
Old 11-10-2019 , 22:31   Re: [L4D & L4D2] Prototype Grenades (1.12) [10-Nov-2019]
Reply With Quote #49

Hello to all,

why does he save? if worth "preferences" "0"




please add a function so that when you take a new grenade, it was an ordinary grenade

Last edited by Voevoda; 11-10-2019 at 22:53.
Voevoda is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-11-2019 , 02:04   Re: [L4D & L4D2] Prototype Grenades (1.12) [10-Nov-2019]
Reply With Quote #50

Quote:
Originally Posted by Voevoda View Post
please add a function so that when you take a new grenade, it was an ordinary grenade
Code:
1.13 (11-Nov-2019)
    - Added option "0" to "preferences" in the config to give stock grenades on pickup.
Done.
__________________
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 12:13.


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