AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2]Weapon push infected (https://forums.alliedmods.net/showthread.php?t=316870)

AK978 06-15-2019 00:18

[L4D2]Weapon push infected
 
1 Attachment(s)
l4d2_homerun_bat.smx modify.

Continue to shoot special infections, special infections will fall back.

Preset allowed weapon: m16 , m60.

Change server allowed weapons:
( change line 8 )
static String:WeaponNames[MAXWEAPON][] = {"rifle" };

( change line 9 )
static String:WeaponNames2[MAXWEAPON][] = {"rifle_m60" };



admin command:
sm_kickback_add <weapon name> <strengh>.
sm_kickback_remove <weapon name>.


ex:
sm_kickback_add rifle 150.



v1.0 new plugin.
v1.1 Revise.(ERROR UPDATE)
v1.2 Revise.




anyone can continue to improve it.



My plugins


贊助網址 Donation URL
https://pay.ecpay.com.tw/CreditPayme...=3050613&Enn=e

phoenix0001 06-15-2019 12:54

Re: [L4D2]Weapon push infected
 
how to use?

AK978 06-15-2019 14:34

Re: [L4D2]Weapon push infected
 
Chat channel input:!weapon_push.
Everyone will plugin enabled.

weapon use:weapon_rifle.

shoot tank.

KRUTIK 06-16-2019 02:40

Re: [L4D2]Weapon push infected
 
You have a video to watch, I also did not understand what this plugin does.

AK978 06-16-2019 03:05

Re: [L4D2]Weapon push infected
 
我的英文很爛.
翻譯的結果也是很爛.

這個插件是開啟特感擊退功能.
持續射擊坦克,你會發現坦克受到子彈衝擊會一直往後退.

只是純粹分享這個修改後的插件.
沒有考慮增加更多的功能.
我也沒錄製過影片,或許其他人可以幫忙.
有興趣的可以自己測試或修改.

My English is very bad.
The result of the translation is also very bad.

This plugin is a special knockback feature.
Continue shooting the tank, you will find that the tank will be backed by the impact of the bullet.

Just purely share this modified plugin.
Did not consider adding more features.
I haven't recorded a movie yet, maybe someone else can help.
If you are interested, you can test or modify it yourself.

phoenix0001 06-19-2019 09:28

Re: [L4D2]Weapon push infected
 
I understand
Need to enter the command first! weapon_push
Then I need to hold the M16 shot TANK in my hand
At this time, TANK will be shot or repelled by M16
This effect is similar to the right button Repel the enemy

Plugins need to be improved
Need to continue this effect
Instead of having to manually enter commands for each chapter
Very troublesome

Silvers 06-19-2019 10:42

Re: [L4D2]Weapon push infected
 
Are these commands supposed to be public commands? Anyone can abuse these for example in Versus by setting a really high pushback which affects everyone. You say theres "sm_weapon_push" public command but you don't list the others:
PHP Code:

// Public commands:
"sm_weapon_push2",
"sm_kickback_add",
"sm_kickback_remove"

// Admin command
"sm_client_kickback_add" 


You say default:rifle "(line 9 can change another weapon)"

but you're forcing the weapon to "rifle":
PHP Code:

FakeClientCommand(client,"sm_kickback_add %s 500","rifle"); 


You should write either:
PHP Code:

// With no option to change
FakeClientCommand(client,"sm_kickback_add rifle 500");
or
// Actually listening to the specified weapon:
FakeClientCommand(client,"sm_kickback_add %s 500"WeaponNames[0]); 


People can set a strength which will overwrite each others. The whole plugins script is messy and I wouldn't expect it all the features to work correctly. Even the reset looks dodgy, it will only reset under certain conditions. I give up following the logic.

phoenix0001 06-19-2019 11:55

Re: [L4D2]Weapon push infected
 
I saw several commands. What is the use of it?
Just open the plugin and only need one command.
Is it possible to add a usage permission?

Can you support 2 kinds of firearms weapons?
Currently a kind.

There must be a prompt after the command is opened, so that the player knows that it has been turned on.

Who can continue to optimize it?

AK978 06-19-2019 13:19

Re: [L4D2]Weapon push infected
 
Version 1.0 is used in my server lottery and vip.
Some invalid features I did not delete.

modification.
need test.
Version 1.1


Change server allowed weapons:
( change line 8 )
static String:WeaponNames[MAXWEAPON][] = {"rifle" };

( change line 9 )
static String:WeaponNames2[MAXWEAPON][] = {"rifle_m60" };


command:
sm_kickback_add <weapon name> <strengh>.
sm_kickback_remove <weapon name>.

phoenix0001 06-20-2019 05:03

Re: [L4D2]Weapon push infected
 
static String:WeaponNames[MAXWEAPON][] = {"smg" };
static String:WeaponNames2[MAXWEAPON][] = {"smg_silenced" };

ERROR
http://4808804.cn/BUG/20190620161210.png

How can I let VIP users use them without entering commands?


All times are GMT -4. The time now is 11:10.

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