EventScripts Forums
Mattie's EventScripts and Source Forums
Mattie recommends...
Premier Sponsor:Platinum Sponsor:
 
Script Categories
addon (49) admin (269) admins (14) advert (15) adverts (19) afk (15) alerts (12) ammo (23) anti (15) auth (16) automatic (12) awp (23) ban (18) ba_jail (17) bhop (19) block (19) bomb (40) bonus (23) bot (24) bot-management (19) bots (17) bunnyhop (11) Buy (21) cash (65) chat (57) cheat (11) clan (16) classes (22) color (21) colors (18) command (20) commands (18) config (22) connect (42) CS:S (16) css (2498) Damage (35) database (11) dead (15) death (19) deathmatch (70) deathrun (12) disconnect (18) Dissolve (11) dm (20) dod:s (11) dods (386) easy (17) effects (120) English (15) entity (21) es_tools (12) Eventscript (12) flashbang (25) français (99) french (36) fun (286) funny (16) Gabeee (11) gameplay (174) give (16) gravity (11) grenade (25) grenades (29) gun (14) GunGame (26) GunGame5 (11) guns (17) Hack (15) headshot (32) health (54) hegrenade (13) hl2dm (329) HP (13) info (48) information (16) jail (26) jailbreak (11) join (23) jump (12) kick (23) kill (44) kills (22) knife (57) leveling (36) management (14) mani (15) map (25) map-management (27) maps (15) match (17) menu (106) message (20) messaging (52) mod (109) model (14) models (32) money (42) motd (12) music (29) mute (18) nades (18) name (13) noblock (35) player (40) player-management (31) player-tracking (28) popup (55) props (23) protection (27) punishment (50) python (63) quake (18) radio (21) random (36) rank (35) rates (16) rcon (13) realism (21) respawn (61) restrict (36) round (20) rpg (24) rules (42) say (11) scout (19) Script (20) script-helper (25) scriptpack (33) sdk (149) server (44) server-tools (42) shop (12) silly (31) simple (27) skins (24) slay (13) soccer (11) sound (45) sounds (92) spawn (62) speed (25) statistics (13) stats (48) STEAMID (23) Superhero (13) surf (31) Team (25) team-balance (14) teleport (11) text (14) TF2 (143) time (17) timer (14) tools (15) tracers (17) triggers (11) uedi (18) uses_auth (18) utility (11) vip (11) vote (36) voting (22) war (20) wcs (24) wcs:Python (32) weapon (77) weapons (114) web (14) welcome (12) zm (24) zombie (90) zombiemod (51) zombies (11)
Script Authors
*XYZ*SaYnt (12) .:MiB:. (11) .eMko* (6) 101satoon101 (10) 3R10N (24) 4u571n91 (5) 7355608 (9) Absolute (8) Ace Rimmer (40) adminc (5) Adz (8) AgathaKnuppelkuh (8) aidden (8) ajax (5) ak_47 (6) Al3c Tr3v3lyan (6) allstareng (5) ashbash1987 (9) ATAMAH (7) aznone (5) B00M (5) BackRaw (41) BFH_RedBull (8) bigfabi (7) Bioko (7) Blade (10) bladesback (13) bobdole (11) bodzsar1 (8) bonbon (36) Brainsucker (30) cagemonkey (8) carbon-14 (10) CaskioUTF (5) cbirou (15) ChaCaLz2psy4 (5) CharlesT (5) Chrisber (5) chrismrulz (9) Chun (6) cladiron (10) clipz934 (8) Colster (21) Cookieman8 (7) craziest (10) DanielB (19) Darkness123 (8) Dave (9) dbozan99 (7) deathx9 (5) Deathyy (15) dhack (16) Di[M]aN (12) DoCky (27) Don (15) dordtcore (8) DragonFreddo (8) Drassil (5) Einlanzers (42) EmbouT (10) emilplov (7) Errant (10) Eun (6) Fantole (9) Franc1sco (9) freddukes (18) Frequency (6) Fulmine (5) GAMEREN2 (8) german9114 (13) GODJonez (38) GoodfellaDeal (5) Hansi (6) HitThePipe (7) HOLLDIDAY (9) Icetouch (6) ichthys (25) infamous1 (9) Jeff91 (45) JoeyT2006 (30) Juba_PornBorn (12) jxl180 (10) KDBFame (6) L'In20Cible (7) Largo Usagi (10) Lobe (11) loKkdoKk (7) lolo-le-haricot (7) LosNir (5) Lumpi@Work (9) M4rc3L-XCN (7) macshot (6) Matth (5) Mattie (20) MBchrono (15) McFly (20) Medda (5) Memphis-84 (10) Messiah93 (12) Mickyy (5) micmacx (6) Mitchell (5) Mordavolt (7) MrScriptaz (5) mryoung (6) Nicolous (26) ojii (31) Omega_K2 (6) Owned|Myself (8) P3N (7) pand3mic (5) parsimba (5) Pascal257 (9) PatPeter (7) PDrop (10) Phaedrus (18) PhantOm Fury (7) phoenix131 (8) pinkyyy -.- (5) pitbull0993 (7) randomknifer (9) Ratzee (6) ReaCtioN2oo9 (6) Rennnyyy (17) revolutionfighters (6) RideGuy (12) Rio (9) Roeliekt (6) runamagic (13) sandking220 (6) Sarcasm_Poisoning (10) saRs| Johnny-5 (13) Schubaal (10) sea212 (5) sega74rus (7) sgt.angel (6) sicilia (5) sicman_adrian (22) skillz92 (7) sn4k3 (18) snake38 (10) sonicsight (7) spoonman184 (8) stabby (22) stas (22) Strontium Dog (30) SumGuy14 (25) SuperDave (45) surfteam (5) TaCo (5) TanaToS (17) Tealk (6) teowow (16) TheCheeTaH (20) TheDonFather (5) theresthatguy (6) Tiny Tod (7) Totyahun (9) uedi (38) Undead (25) usernamesaretaken (15) Warren (13) westham (6) WhiteAvenger (7) Wonder (14) X-Mania (5) XE_ManUp (13) xfalcon61 (5) zSweetXz (5) [Cs]Lord_Inferno2 (11) [NATO]Hunter (28) ||Wolf|| (10)
Search

Post new topic Reply to topic
Go to page 1, 2, 3, 4, 5 ... 37  Next
Author Message
User avatar
Power User
Profile

Posts: 546
Location:
PA, USA
 
New postPosted: 2007-12-09, 3:03 am 
   Post subject: Schubaal's KnifeP3N

Schubaal's KnifeP3N 5.1.0
Posted by Schubaal on 2007-12-09 02:52:34.
Image

Requirements:
Description:
    When there's only one player left on each team, knife battles ensue!

    I've kept the name in honor of its creator, P3N, who unfortunately no longer has the time to support the addon.
Download: Installation:
    1. Install Mattie's EventScripts plugins:
      http://mattie.info/cs
    2. Extract the file [knifep3n.zip] to your /cstrike/ directory (underlined files are NOT included as of v4.6.1a - you can get them from an older version if you want them):
      /addons/eventscripts/knifep3n/knifep3n.py
      /cfg/knifep3n/knifep3n.cfg
      /cfg/knifep3n/strings.ini
      /sound/ql/chicken.wav
      /sound/schu/beacon.wav
    3. Add the following line somewhere in autoexec.cfg or server.cfg:
      es_load knifep3n
Feature Requests:
Version Notes:
  • 5.1.0 -
    Code:
    5.1.0
       Fixed: If a player disconnects while he or she is participating in a knife fight, it will no longer slay everyone at the beginning of the following round
       Fixed: Loading the cfg will now also strip tabs as well as excess spaces

    5.0.7 RC3
       Added: Polish translation, thanks to Arcy
       Fixed: If a player won a knife fight and then the map changed before the following round_start was triggered, the script was experiencing the same lockup that previously occurred with kp_force
       Fixed: some more typos in the keep_weapons code

    5.0.6 RC2
       Added: Russian translation, thanks to Cheburator259
       Fixed: A typo that prevented keep_weapons from returning primary and secondary weapons. Credit: freddukes
       Fixed: If teleport was enabled and a player killed his opponent during the 3-second countdown, players were still being slain at the beginning of the next round.
       Fixed: Players will now have their speed set to 1.0 for knife fights. A configuration option will be added after the release of 5.1.0 to allow this value to be set like health for the fight.


    5.0.5 RC1
       Added: German translation, thanks to SebiTimeWaster
       Added: When fight time expires, the player with the lowest health will now be slain. This counts as a suicide, and therefore the highest health player does not actually "win" the fight.
       Fixed: @kp_force and no_vote will no longer prevent future knife fights.
       Fixed: @kp_force can no longer be used once a fight has already started (!!! - new line in strings.ini).
       Fixed: Players will now properly be slain when spawning during a knife fight.
       Fixed: Players should no longer sometimes be able to have a weapon during a fight.
       Fixed: KnifeP3N should no longer feel the need to attempt slaying players at the beginning of a round.
       Fixed: Resilience was being confused with keep_weapons. They will now both function properly and independent of each other.


    5.0.4.1
       This release has every previous feature included except for slaying based on health left after fight time expires. Major focus will be shifted to fixing bugs and cleaning up the code.
       New:
          French translation, thanks to L'In20Cible
          Config moved to /cfg/knifep3n/knifep3n.cfg
          @kp_reload will allow you to reload knifep3n.cfg without reloading knifep3n
          lame_health added
          spoils of war (keep_weapons) added
          Players will no longer be able to spawn during a knife fight
       Fixed:
          Status should no longer ever be 0 while timer is not.
          T's and CT's will now have the proper beacon colors according to the config.


    5.0.2.4
       This is now a beta release. With almost all features from KnifeP3N 4 already implemented, testing needs to be done to find any bugs, the config will be moved out of the script file, and the code needs cleaned up before an official 5.1.0 release.
       New
          Language support - not all strings in the ini are currently used
          Chat filter re-implemented
          kp_force and no_vote
          Chicken punishment
          Slap for use with teleport
       Fixed:
          Weapons are now removed when picked up during a fight
          Now only tries to use EST beacon if EST is running
       Changed:
          Health and Speed bonuses are now additive to be more friendly with other addons.


    5.0.1.2
       Bot voting options
       Rewards (health, speed, and cash)
       Beacon (the script presently requires EST, but this will be fixed in the next version - if you do not have EST but still want to test, simply remove the line est.beacon(userid) - note that the visual beacon, as in KnifeP3N 4, requires EST)
       Sounds, including support for multiple sounds for ALL options (except multiple beacon sounds)
       Resilience - with this option on, the previous winner keeps his bonus until someone else wins
       Teleport - slap is not yet implemented with this

Older version notes can be found at http://forums.mattie.info/cs/forums/vie ... hp?t=12277



Development Plan
Everything in this section is undeveloped. Everything listed below will not necessarily happen in the order or timeframe it is shown. This is simply an expanded "coming soon" section.
  • 5.2.0 -
    • custom skins support (winner and chicken)

_________________
Image
Active Projects: KnifeP3N - AntiCamp
Disciples of Deviance GG Server (running latest versions of KnifeP3N and AntiCamp!)
Image


Last edited by Schubaal on 2010-03-29, 11:58 am, edited 73 times in total.




User avatar
Mentat Philosopher
Mentat Philosopher
Profile

Posts: 5238
Location:
Kirkby, Nottinghamshire, United Kingdom
 
New postPosted: 2007-12-09, 5:23 am 

Schubaal, although you've worked hard, I think Mani is slowly dieing out, as many ES users don't like to use Mani-Admin and would prefer scripts to control their servers. For this reason, I think it would of been a better idea to keep the ESTools. Anyway, nice job.

-freddukes

_________________
|--------------------------------------------------------|
| SourceRPG | AdMail | Comments | VoteMap | SpawnProp |
|--------------------------------------------------------|
IRC wrote:
<SuperDave|away> Common sense is overrated


User avatar
Power User
Profile

Posts: 546
Location:
PA, USA
 
New postPosted: 2007-12-09, 5:33 am 

My only issue with ESTools is that I have confirmed that even the most recent version causes a large amount of server crashes. This is the only reason I don't use it.

If awuh0 can release a stable version that can guarantee to not cause the large amount of crashes that the current versions do, I'd be happy to continue using it.

I will, however, work to add support for both options in the near future.


User avatar
Mentat Philosopher
Mentat Philosopher
Profile

Posts: 5238
Location:
Kirkby, Nottinghamshire, United Kingdom
 
New postPosted: 2007-12-09, 5:40 am 

Yes, that would be much better to use support, as the beacon is only used by mani-admin, this is quite easily made to work via ESTools. Also, about the crashing, have you seen this thread?

good luck for future releases...

-freddukes

(note, the most annoying this about this script is the millions of messages which spam the chat. Maybe you could give the user an option to tone down the amount of messages... e.g.

ES:

    es_xset message_spam "vital_only"

    // the type of messages that will be sent

    // Vital_only will send only necessary messages...

    // All will send all messages

    // none will send no messages



    if (server_var(message_spam) in "all;vital_only") then foreach player tempuserid #all "es_toptext server_var(tempuserid) 15 #red event_var(es_attackername) Won the knifefight RESPECT!!!!"

    if (server_var(message_spam) == "all") then es_tell event_var(userid) #multi #default[KnifeP3N]#lightgreen KNIFE FIGHT IN PROGRESS PLEASE WAIT!!!

     

_________________
|--------------------------------------------------------|
| SourceRPG | AdMail | Comments | VoteMap | SpawnProp |
|--------------------------------------------------------|
IRC wrote:
<SuperDave|away> Common sense is overrated


User avatar
Power User
Profile

Posts: 546
Location:
PA, USA
 
New postPosted: 2007-12-09, 5:52 am 

Yeah, I just put in a support ticket asking our host about the status of DEP for srcds.


As for the knifep3n spam, I'll put it on the list for the 4.1 release, at which point I should also be done optimizing the old code.


Edit: I've added a list of development plans/goals in the original post.


User avatar
New User
Profile

Posts: 19
 
New postPosted: 2007-12-09, 12:20 pm 

Great work i love this mod since my clan loves to knife
The only request i might have is to keep the preditor skin! PLZ


User avatar
Power User
Profile

Posts: 546
Location:
PA, USA
 
New postPosted: 2007-12-09, 4:55 pm 

I've added it to the dev list.

_________________
Image
Active Projects: KnifeP3N - AntiCamp
Disciples of Deviance GG Server (running latest versions of KnifeP3N and AntiCamp!)
Image


User avatar
Power User
Profile

Posts: 546
Location:
PA, USA
 
New postPosted: 2007-12-10, 12:43 am 

v4.1.0 released.

This is a difficult mod to test, so please remember to report any bugs as specifically as possible!


User avatar
Regular
Profile

Posts: 131
 
New postPosted: 2007-12-10, 5:23 am 

I tried this mod but found one small flaw. When both players accept and the knife fight begins, it takes yer weapons. Sure, thats all well and good, but you can still pick up a gun off the ground, and shoot the other guy with it. It doesnt slay you and it says you win the knife fight. Shouldnt it slay whoever inflicts non-knife dmg, like LastManKnifing?
Am i doing something wrong?

Also, its pretty slow at asking you when it first becomes 1 v 1, compared to say LMK. Other then that, i like the mod alot tho. It also works much better with bots then LMK. Overall id prefer to use this mod over LMK except the whole shooting people and not getting slayed kinda turns me off... :(

_________________
CmG Sketchy
Image


User avatar
Power User
Profile

Posts: 546
Location:
PA, USA
 
New postPosted: 2007-12-10, 6:36 am 

v4.1.1 bugfix for the knife/gun issue will be up in a few moments. I'll also package it with the default sound files, as well.

Edit: There's gonna be a bit of a delay. The server I test on is currently offline, and I need to sleep. I'll finish up the next release this evening at the first chance I get.


User avatar
Regular
Profile

Posts: 131
 
New postPosted: 2007-12-10, 7:15 am 

Wowza that was a way faster response then i'd even hoped for. Fantastic! When you post the release ill give it a shot and give ya any feedback. As for the default sound files i thought it was funny i couldnt find em lol. I got my own chicken wav and it worked fine. :) Again, thanx for the prompt reply!

_________________
CmG Sketchy
Image


User avatar
Power User
Profile

Posts: 546
Location:
PA, USA
 
New postPosted: 2007-12-10, 10:55 pm 

v4.2.0 is now uploaded. Note that Mani Admin is no longer used, so ES_Tools is a requirement

_________________
Image
Active Projects: KnifeP3N - AntiCamp
Disciples of Deviance GG Server (running latest versions of KnifeP3N and AntiCamp!)
Image


User avatar
Regular
Profile

Posts: 131
 
New postPosted: 2007-12-11, 12:31 pm 

Nice changes on the weapon pickup, works great. My current problem now however, is sound. To be more specific, the blip sound is not playing. It also is not downloading to clients. Its not the sound file itself as i can set it to any other valid wav or mp3 and it will likewise fail to send that one to the cleint as well. All the other sounds both work fine and download to the client fine. I did notice that the blip wav you included wasnt set to a sample rate of 44100 like custom sounds need to be, but maybe sounds with mods r different. Either way, thats not the current problem, because if it was it would still download fine and THEN refuse to play and give a sample rate error. Here is my error log when im knife fighting and the beacon's on.

Failed to load sound "ql\blip.wav", file probably missing from disk/repository
Failed to load sound "ql\blip.wav", file probably missing from disk/repository
Failed to load sound "0.wav", file probably missing from disk/repository
Failed to load sound "ql\blip.wav", file probably missing from disk/repository
Failed to load sound "ql\blip.wav", file probably missing from disk/repository
Failed to load sound "ql\blip.wav", file probably missing from disk/repository
Failed to load sound "ql\blip.wav", file probably missing from disk/repository
Failed to load sound "ql\blip.wav", file probably missing from disk/repository
Failed to load sound "ql\blip.wav", file probably missing from disk/repository
Failed to load sound "ql\blip.wav", file probably missing from disk/repository
Failed to load sound "ql\blip.wav", file probably missing from disk/repository
Failed to load sound "ql\blip.wav", file probably missing from disk/repository
Failed to load sound "ql\blip.wav", file probably missing from disk/repository
Failed to load sound "ql\blip.wav", file probably missing from disk/repository
Failed to load sound "ql\blip.wav", file probably missing from disk/repository
Failed to load sound "ql\blip.wav", file probably missing from disk/repository
Failed to load sound "ql\blip.wav", file probably missing from disk/repository
=??G=|S| ?ketch? killed =CmG=|B| Derek with knife.
KILLED (HS) =CmG=|B| Nick » 180 Dmg, 2 Hits sg552 @ 6.02m (19.8ft)
KILLED =CmG=|B| Derek » 110 Dmg, 2 Hits knife @ 2.15m (7.1ft)
[KnifeP3N] =??G=|S| ?ketch? Has won
 =??G=|S| ?ketch? stole a level from =CmG=|B| Derek
Failed to load sound "ql\blip.wav", file probably missing from disk/repository
Failed to load sound "ql\blip.wav", file probably missing from disk/repository
Failed to load sound "0.wav", file probably missing from disk/repository


As you can see, it has a problem with the blip.wav (PS, i know its originally blip1.wav and not blip.wav. blip.wav is simply blip1.wav at a sample rate of 44100 that i uploaded to the server as well. I grabbed this error log as i got closer to my wits end after already trying many things) :)

Just to clarify. For ex: The daffy duck sound or whatever it is, plays when someone wins. Downloads fine tio the client as well. BUT if i also set the beacon sound to that file, it will generate the same error for each pulse of the beacon, but then it WILL play it correctly when someone wins the fight and its triggered by someone winning and not the beacon.

PS. We're running ES_Tools 418d, EventScripts 1.5.0.171b

_________________
CmG Sketchy
Image


User avatar
Power User
Profile

Posts: 546
Location:
PA, USA
 
New postPosted: 2007-12-11, 12:57 pm 

I've actually 1-upped myself, this time :)

The problem was that the beacon sound wasn't being added to the downloadable list (knifep3n isn't the only script that uses the blip on my server), but when I went to add it, I realized that I'd already made all of the changes that I had listed for the estimated 4.3.0 build.

This build hasn't been tested, so if you still have problems, I'll have to take a better look at it.

_________________
Image
Active Projects: KnifeP3N - AntiCamp
Disciples of Deviance GG Server (running latest versions of KnifeP3N and AntiCamp!)
Image


User avatar
Regular
Profile

Posts: 131
 
New postPosted: 2007-12-11, 1:47 pm 

Dont take this the wrong way, but im happy it was just a bug and not just something weird on my server i woulda had to figure out! :) ima download this and test it soon as i get a chance.

PS. I run a reverse gungame server with buylevel mod. Is the money reward adjustable or is it simply 16,000? Because buying a level costs 16,000, giving the winner of every single knife fight enough money to buy a level every time, is excessive. I'd love to give em SOME money, because im always looking for ways to encourage knifing on my server, but im talkin like 1,000 or 2,000.

_________________
CmG Sketchy
Image


User avatar
Power User
Profile

Posts: 546
Location:
PA, USA
 
New postPosted: 2007-12-11, 1:49 pm 

It can be done, I'll have it in the next release, which I'll be holding off on until I can get more bugfix feedback :P

_________________
Image
Active Projects: KnifeP3N - AntiCamp
Disciples of Deviance GG Server (running latest versions of KnifeP3N and AntiCamp!)
Image


User avatar
Regular
Profile

Posts: 131
 
New postPosted: 2007-12-11, 4:38 pm 

Sweet thanx a ton. Im so happy i bumped into this mod as a replacement for LMK when i did.

I've got no bug's to report. Everything is working good and im gonna keep it up on the server.

PS: Its obviously due to the fact that people are adjusting to this knife fight mod over my old one, but im gettings alot of comments on the speed of the blip. Not sure if your taking feature requests or not but a somewhat adjustable radius or speed of the beacon/blip is about all that comes to mind aside from the adjustable money thing i mentioned in the previous post.

Nice job. I'm now more then happy to make the switch over from my old knife mod. Just the fact it works with the bots, should help get that 1 or 2 first guy in the server that needs to be there before other people start joining in the early morning.

_________________
CmG Sketchy
Image


User avatar
New User
Profile

Posts: 19
 
New postPosted: 2007-12-11, 6:43 pm 

Iv been using this script for a long time on my Reverse Turbo GG and the only bad thing i have noticed as far as the preditor skin goes is that sometimes the player becomes invisible once he gets the preditor skin. This does not happen often but enough to annoy some players.

Also if its not too much trouble could you please add support for adding custom skins, instead of the predtor skin?? That would be awsome!!


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 653 posts ]  Go to page 1, 2, 3, 4, 5 ... 37  Next


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group