Raised This Month: $ Target: $400
 0% 

Headshot only [L4D]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GM-Scorp
Senior Member
Join Date: Jun 2009
Location: netherlands
Old 08-02-2009 , 19:18   Headshot only [L4D]
Reply With Quote #1

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
GM-Scorp is offline
Send a message via MSN to GM-Scorp
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 08-02-2009 , 20:00   Re: Headshot only [L4D]
Reply With Quote #2

http://forums.alliedmods.net/showthr...light=headshot

__________________

Last edited by CrimsonGT; 08-02-2009 at 20:28.
CrimsonGT is offline
GM-Scorp
Senior Member
Join Date: Jun 2009
Location: netherlands
Old 08-02-2009 , 20:04   Re: Headshot only [L4D]
Reply With Quote #3

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 ?
GM-Scorp is offline
Send a message via MSN to GM-Scorp
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 08-02-2009 , 20:20   Re: Headshot only [L4D]
Reply With Quote #4

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.
Attached Files
File Type: sp Get Plugin or Get Source (l4dheadshots.sp - 431 views - 1.5 KB)
__________________

Last edited by CrimsonGT; 08-02-2009 at 20:28.
CrimsonGT is offline
GM-Scorp
Senior Member
Join Date: Jun 2009
Location: netherlands
Old 08-03-2009 , 07:19   Re: Headshot only [L4D]
Reply With Quote #5

KK Thank you verry much

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

Last edited by GM-Scorp; 08-03-2009 at 07:40.
GM-Scorp is offline
Send a message via MSN to GM-Scorp
olj
Veteran Member
Join Date: Jun 2009
Old 08-03-2009 , 08:59   Re: Headshot only [L4D]
Reply With Quote #6

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.
Attached Files
File Type: sp Get Plugin or Get Source (l4dheadshots.sp - 347 views - 1.8 KB)
__________________

Last edited by olj; 08-03-2009 at 09:13.
olj is offline
GM-Scorp
Senior Member
Join Date: Jun 2009
Location: netherlands
Old 08-03-2009 , 10:50   Re: Headshot only [L4D]
Reply With Quote #7

thx Dude Apreciate it

*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

Last edited by GM-Scorp; 08-03-2009 at 10:58.
GM-Scorp is offline
Send a message via MSN to GM-Scorp
olj
Veteran Member
Join Date: Jun 2009
Old 08-03-2009 , 11:44   Re: Headshot only [L4D]
Reply With Quote #8

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.
__________________

Last edited by olj; 08-03-2009 at 11:53.
olj is offline
GM-Scorp
Senior Member
Join Date: Jun 2009
Location: netherlands
Old 08-03-2009 , 12:13   Re: Headshot only [L4D]
Reply With Quote #9

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
GM-Scorp is offline
Send a message via MSN to GM-Scorp
olj
Veteran Member
Join Date: Jun 2009
Old 08-03-2009 , 13:35   Re: Headshot only [L4D]
Reply With Quote #10

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.
Attached Files
File Type: sp Get Plugin or Get Source (l4dheadshots.sp - 525 views - 1.9 KB)
__________________

Last edited by olj; 08-03-2009 at 14:07.
olj 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 03:20.


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