Raised This Month: $51 Target: $400
 12% 

[L4D] Item Buy System


Post New Thread Reply   
 
Thread Tools Display Modes
(-DR-)GrammerNatzi
Senior Member
Join Date: Jun 2009
Old 07-07-2009 , 20:47   Re: [L4D] Item Buy and Admin Gifting System
Reply With Quote #71

Quote:
Originally Posted by Op-X View Post
is there a way to block spawning usage in safe rooms b4 door opens?
Not yet, but possible.

Quote:
Originally Posted by GrossKopf View Post
Will putting -1 as a value disable something, such as:

points_limit_witches "-1"
points_price_infected_hunter "-1"
Haven't put it in yet.

Quote:
Originally Posted by chunXray View Post
is it possible to get point when i saving my friends from hunter/smoker ?
Haven't put that in yet either, but I've been considering it for a while.

Quote:
Originally Posted by GrossKopf View Post
Does HLStatsX interfere with this mod?
Why would it?
(-DR-)GrammerNatzi is offline
GrossKopf
Senior Member
Join Date: Jun 2007
Old 07-08-2009 , 16:15   Re: [L4D] Item Buy and Admin Gifting System
Reply With Quote #72

I have a feature request:

Give the special infected the ability to buy groups of regular infected, hoards and a panic event.
GrossKopf is offline
GrossKopf
Senior Member
Join Date: Jun 2007
Old 07-08-2009 , 18:57   Re: [L4D] Item Buy and Admin Gifting System
Reply With Quote #73

If I set the cost to purchase something to "0", will THAT disable it?
GrossKopf is offline
206source
Junior Member
Join Date: Nov 2007
Old 07-09-2009 , 00:29   Re: [L4D] Item Buy and Admin Gifting System
Reply With Quote #74

disconnect players in team changer.
HTML Code:
L 07/08/2009 - 00:27:34: SourceMod error session started
L 07/08/2009 - 00:27:34: Info (map "l4d_vs_farm02_traintunnel") (file "errors_20090708.log")
L 07/08/2009 - 00:27:34: [SM] Plugin encountered error 15: Array index is out of bounds
L 07/08/2009 - 00:27:34: [SM] Displaying call stack trace for plugin "L4DPointsandGift.smx":
L 07/08/2009 - 00:27:34: [SM]   [0]  Line 385, /home/groups/alliedmodders/forums/files/5/5/6/3/0/44442.attach::TankKill()
L 07/08/2009 - 00:33:08: Error log file session closed.
hot to fix¿
206source is offline
chunXray
Member
Join Date: Jul 2009
Old 07-09-2009 , 01:02   Re: [L4D] Item Buy and Admin Gifting System
Reply With Quote #75

infected players spwan infecred in safe room, that makes game would not be started
chunXray is offline
Skorpion1976
Veteran Member
Join Date: Jun 2009
Location: Austria
Old 07-09-2009 , 15:49   Re: [L4D] Item Buy and Admin Gifting System
Reply With Quote #76

Quote:
Originally Posted by chunXray View Post
infected players spwan infecred in safe room, that makes game would not be started
thats easy to be fixed! Here´s what I did

download the .sp file, open it and search for all 5 "z_spawn xxxxxxxx" entries (NOT those entries which contain only this word "z_spawn")
change them so they look like this:

before:
z_spawn boomer --> After: z_spawn boomer auto
same for smoker/tank/hunter/witch

The "auto" at the end makes the big difference. It forces the engine to spawn special infected only in designated areas. Without "auto" the inf. gets spawned at the position from the buyer´s CROSSHAIR when he is in ghost mode. Saferoom is now safe again. When ready compile the file and you have your .smx file again If you need info on how to compile: download your current sourcemod version (i have 1.2.0) and put the .sp file in the "scripting" folder. start compile.exe and the .smx is in the "compiled" folder.

I hope I could help.
cheers.

Last edited by Skorpion1976; 07-09-2009 at 16:30.
Skorpion1976 is offline
Skorpion1976
Veteran Member
Join Date: Jun 2009
Location: Austria
Old 07-09-2009 , 16:05   Re: [L4D] Item Buy and Admin Gifting System
Reply With Quote #77

Quote:
Originally Posted by GrossKopf View Post
If I set the cost to purchase something to "0", will THAT disable it?
Hi,

Judging from the sourcecode it´s clear:
Changing a price to 0 means it´s for free. The price for i.e. boomer I set to 30. This price gets stored in a variable that gets subtracted from the total points of the buyer when he actually buys the infected. So if the buyer has 33 points and he buys a boomer, the value "30" gets subtracted, 3 points remain. If you change the price to "0" the boomer is for free and ALL 33 points remain.

If you want to remove a menu item you have to delete the corresponding lines that contain your desired items(s) and then check for cross dependencies within the .sp file, meaning, deleting something does sometimes have side-effects

I removed witch and tank from the menu, all corresponding cvars and prices and the plugin works fine.

I hope I could help,
cheers.

Last edited by Skorpion1976; 07-09-2009 at 16:32.
Skorpion1976 is offline
Skorpion1976
Veteran Member
Join Date: Jun 2009
Location: Austria
Old 07-09-2009 , 16:26   Re: [L4D] Item Buy and Admin Gifting System
Reply With Quote #78

I did it, it´s "easy"

Open your server.cfg and add these lines:

sm plugins unload L4DPointsandGift.smx
sm plugins load L4DPointsandGift.smx

The server.cfg gets executed EVERY map change (not round change), thus it unloads and immediately loads the plugin during mapchange. All points resetted to default and you start collecting them from scratch. unloading/loading doesn´t have any impact on performance or stability on my servers.

Your software translation program works pretty good !
cheers!

Quote:
Originally Posted by tokoroten View Post
I want to express my gratitude for the thing to develop happy MOD so much first.

I have one demand.
I want to reset the point every time the map changes.
Will this be a possible thing?
When it is not easy to understand, I'm sorry because it translates with software.

Last edited by Skorpion1976; 07-09-2009 at 16:32.
Skorpion1976 is offline
Skorpion1976
Veteran Member
Join Date: Jun 2009
Location: Austria
Old 07-09-2009 , 16:35   Re: [L4D] Item Buy and Admin Gifting System
Reply With Quote #79

Quote:
Originally Posted by GrossKopf View Post
I have a feature request:

Give the special infected the ability to buy groups of regular infected, hoards and a panic event.
ooooooooooooh.... you are as evil as me and I like that XD.
Spawning a panic event meaning tons of flesh craving zombies coming from everywhere to give the survivors a hug
cool Idea! I will look what I can find to implement this.
Skorpion1976 is offline
(-DR-)GrammerNatzi
Senior Member
Join Date: Jun 2009
Old 07-09-2009 , 19:49   Re: [L4D] Item Buy and Admin Gifting System
Reply With Quote #80

Alright, I have time to work on the plug-in again now. Skorpion, thanks for the advice. I'll get back to working on the plug-in right now and release something by either today or tomorrow that'll fix and add a lot of things. Anything else you care to share that might help improve the plug-in?
(-DR-)GrammerNatzi 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 04:56.


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