AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Headshot only [L4D] (https://forums.alliedmods.net/showthread.php?t=99223)

GM-Scorp 08-02-2009 19:18

Headshot only [L4D]
 
i was wondering if someone could make a plugin for left 4 dead
so that you can only kill infected with headshots

i know there are scripts for it and stuff
but they have other kind of stuff in it to like faster zombies and more powerfull zombies

i only want Headshot only
and if its posable to enable and disable using the admin panel

Thx

CrimsonGT 08-02-2009 20:00

Re: Headshot only [L4D]
 
http://forums.alliedmods.net/showthr...light=headshot


GM-Scorp 08-02-2009 20:04

Re: Headshot only [L4D]
 
Uhh yeah i didnt ask for Cvars i Asked for a plugin that does that

and to enable / disable in Admin panel

Didnt see that in your Link ?

CrimsonGT 08-02-2009 20:20

Re: Headshot only [L4D]
 
1 Attachment(s)
A plugin for this really seems overkill. You can just make two configs with the cvars, and execute the one you want but heres a plugin. Im not adding it to the admin, its just a cvar you can change.

"sm_headshots_only" "0"

*Edit*

Forgot to mention that its untested, so let me know.

GM-Scorp 08-03-2009 07:19

Re: Headshot only [L4D]
 
KK Thank you verry much :D

EDIT: i tryed it but i didnt get it to work
They kept dieing with the cvar to 1 or to 0 it stayed the same

olj 08-03-2009 08:59

Re: Headshot only [L4D]
 
1 Attachment(s)
THESE CVARS ARE CHEAT ONES. If you want to change them via plugin you should remove cheat flag from these commands, change them, then return cheat flag. I can make it for you if you want and if i have time, it shouldnt be too hard for me.

OK, here you go. Should work fine.

GM-Scorp 08-03-2009 10:50

Re: Headshot only [L4D]
 
thx Dude Apreciate it :D

*EDIT* How do i have to use the Cvars

i tryed to type them into the console didnt work
i tryed it in the server.cfg didnt work
i tryed it on binding didnt work

what am i doing wrong :(

olj 08-03-2009 11:44

Re: Headshot only [L4D]
 
You mean plugin doesnt work for you after changes i made?? Or changing sm_headshots_only doesnt affect anything? Anyway if you want to change cheat cvars use sm_cvar "CVAR NAME HERE" syntax. That would change any cvar, except for 1 or 2.
For example: sm_cvar z_health 666.

GM-Scorp 08-03-2009 12:13

Re: Headshot only [L4D]
 
Wel i have the plugin in the plugin folder

but to get it to work i have to use "sm_headshots_only" "0"
right?

but set the 0 to 1 for it to work right?

i tryed that but that doesnt do anything

should i use another cvar for it

like sm_cvar sm_headshots_only 1

or am i getting this all wrong
i'm getting a lil confused now lol

i only need to know what cvar enable and disables it

and can i bind those to a key

olj 08-03-2009 13:35

Re: Headshot only [L4D]
 
1 Attachment(s)
i will test plugin now.

EDIT: Plugin works nice. You doing something wrong, put my plugin in sourcemod\plugins folder. In game type in console sm_headshots_only 1 to activate it. Then you will have zombies killable only by headshots. Make sure you got plugin from my post. If you want put somewhere in config sm_headshots_only 1.You dont need sm_cvar for it, since this cvar dont have any flags. Since you dont want anyone other to change this cvar i will add some flags to it.

Also type in console sm plugins list, and check if it has loaded successfully.

Ok heres edited version. Now you can change it ingame only with sm_cvar. So only you and admins will be able to do it.

BTW, you can still kill them with melee.


All times are GMT -4. The time now is 03:20.

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