AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [L4D2]Item tips (https://forums.alliedmods.net/showthread.php?t=305286)

phoenix0001 02-14-2018 09:58

[L4D2]Item tips
 
All items, weapons, melee, etc., all can add a message prompts, players pick up an item there will be a prompt to tell the player the function of this item and the special usage.

For example:
grenade_launcher
you can continuously hit the maximum 9 bullets.
https://forums.alliedmods.net/showthread.php?p=1495171

pumpshotgun
Missile System Can launch missiles
https://forums.alliedmods.net/showthread.php?t=136019

cravenge 02-14-2018 19:58

Re: [L4D2]Item tips
 
This idea is similar to what I am working on. I would like to call it [L4D2] Weapon Stats but it heavily relies on Left 4 Downtown 2 extension for accurate reports of each weapon's attributes. I'll post screenshots for the progress when I'm home.

phoenix0001 02-15-2018 01:16

Re: [L4D2]Item tips
 
Wow...Waiting.....

Psyk0tik 02-16-2018 04:35

Re: [L4D2]Item tips
 
This sounds interesting! Can't wait! :D

cravenge 02-16-2018 05:49

Re: [L4D2]Item tips
 
Sorry for the delay, but I am working overtime. Give me about... 6 hours or a day, maybe? :(

I posted from my phone. :P

Psyk0tik 02-16-2018 06:52

Re: [L4D2]Item tips
 
Quote:

Originally Posted by cravenge (Post 2578453)
Sorry for the delay, but I am working overtime. Give me about... 6 hours or a day, maybe? :(

I posted from my phone. :P

Ayy no worries! Take your time. :D

timtam95 02-17-2018 16:22

Re: [L4D2]Item tips
 
3 Attachment(s)
Place l4d2weaponmsg.cfg in left4dead2/cfg/sourcemod or the plugin will create it for you upon loading.
Edit l4d2weaponmsg.cfg and place your custom messages.
Example:
cv_weapon_grenade_launcher_msg "You picked up a grenade launcher"

Or leave blank to show no message.

phoenix0001 02-19-2018 04:27

Re: [L4D2]Item tips
 
l4d2weaponmsg.cfg
Can not load Chinese.

Can you replace it with PrintHintText?

cravenge 02-19-2018 05:30

Re: [L4D2]Item tips
 
Quote:

Originally Posted by timtam95 (Post 2578747)
[...]

Simple yet useful. :)

Also, for the time being, I'm trying to add "custom" key values for each weapon. This serves for any plugins that modifies those weapons.

For example:
PHP Code:

// ...
    
"weapon_grenade_launcher"
    
{
        
"max_clips" "5" /* Even if you leave this blank, the plugin will use the default game convar instead. */
        
"max_ammo" "10" /* Even if you leave this blank, the plugin will use the default game convar instead. */
        
"damage" "1000" /* Even if you leave this blank, the plugin will use the default game convar instead. */
        
"custom"
        
{
            
"multi-clip_grenade_launcher-l4d2" "1"
        
}
    }
// ... 

Under there, you must list all the plugins that modifies the Grenade Launcher in order to display this to the client.
PHP Code:

Weapon Stats: (Grenade Launchers)

Maximum Clip5
Maximum Ammunition
10
Damage
1000

Add
-ons:
You can have more clips with this weapon by reloading.
  (
Courtesy of [L4D2Multi-Clip Grenade Launcher plugin)

1. Back 


phoenix0001 02-19-2018 05:30

Re: [L4D2]Item tips
 
How to prompt melee weapons?
crowbar
frying_pan
machete
cricket_bat
baseball_bat
tonfa
electric_guitar
fireaxe
katana
golfclub


All times are GMT -4. The time now is 12:19.

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