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

[TF2] Set Cash(Mann vs Machine mode)


Post New Thread Reply   
 
Thread Tools Display Modes
tunasushi
New Member
Join Date: Aug 2012
Old 08-17-2012 , 19:15   Re: [TF2] Set Cash(Mann vs Machine mode)
Reply With Quote #31

I always have some issue with no clients matching the name I put in. Please help!
tunasushi is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 08-17-2012 , 21:25   Re: [TF2] Set Cash(Mann vs Machine mode)
Reply With Quote #32

Updated to 1.0.3
-Fixed a code issue with addcash and removecash


Sorry about that, I was tired when I added them and missed that. :-\


Quote:
Originally Posted by tunasushi View Post
I always have some issue with no clients matching the name I put in. Please help!
It won't work if you target unconnected people, or bots.

Edit:As a side note, I haven't had the negative money problem after today's update

Last edited by Tylerst; 08-17-2012 at 22:53.
Tylerst is offline
Znuff
Junior Member
Join Date: Aug 2012
Old 08-18-2012 , 00:23   Re: [TF2] Set Cash(Mann vs Machine mode)
Reply With Quote #33

See files in /tf/scripts/population

Edit the .pop files and you can set starting cash value.

You can also create new game modes.
Znuff is offline
darklordpazuzu
New Member
Join Date: Aug 2012
Old 08-19-2012 , 01:36   Re: [TF2] Set Cash(Mann vs Machine mode)
Reply With Quote #34

Found a bug messing with the plugin tonight.

Say, I give everyone 10000 cash. If we lose the wave, everyone is set to -10000 cash. A negative value, and sm_addcash, sm_setcash do nothing what-so-ever. Using @red, @all, or "PlayerName". Nothing. sm_removecash works to drop them lower, only legit cash drops will increase the player cash.

Last edited by darklordpazuzu; 08-19-2012 at 01:37.
darklordpazuzu is offline
Blacklight21
New Member
Join Date: Aug 2012
Old 08-19-2012 , 09:44   Re: [TF2] Set Cash(Mann vs Machine mode)
Reply With Quote #35

I'm new here, but for me, the best way to fix this problemm would be command to freeze cash, such as sm_freezecash ...
Blacklight21 is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 08-19-2012 , 11:04   Re: [TF2] Set Cash(Mann vs Machine mode)
Reply With Quote #36

Quote:
Originally Posted by darklordpazuzu View Post
Found a bug messing with the plugin tonight.

Say, I give everyone 10000 cash. If we lose the wave, everyone is set to -10000 cash. A negative value, and sm_addcash, sm_setcash do nothing what-so-ever. Using @red, @all, or "PlayerName". Nothing. sm_removecash works to drop them lower, only legit cash drops will increase the player cash.
As I said several posts ago:
Quote:
Originally Posted by Tylerst View Post
Quote:
Originally Posted by KnoXviLLe View Post
Bug.5 min after -12000$
Quote:
Originally Posted by Mitchell View Post
I get that too, it's valve's shop thing, it trys to re-add the money, valve glitch though.
Quote:
Originally Posted by Jim E. Rustler View Post
Valve can't math good.
Yeah, nothing I can do about it as far as I know.
Quote:
Originally Posted by Blacklight21 View Post
I'm new here, but for me, the best way to fix this problemm would be command to freeze cash, such as sm_freezecash ...
This wouldn't work to fix the problem either. The problem is that when you fail, your current upgrades are subtracted from your money, however, money given with the plugin isn't registered.

IE, You have 1000$ at wave start. You sm_addcash 3000 and buy 4000$ worth of stuff. You fail. The game sets your money back at 1000$, but subtracts the 4000$ worth of upgrades, leaving you at -3000$

I tried several different methods to fix this, such as firing the mvm_pickup_currency event, but have so far been unsuccessful.

The closest I've gotten to a fix was stripping the cheat flag and using the game's built in currency_give, which was able to bring the money back to positives. Unfortunately, it has the flag which disallows the server to force a client to use it, so I can't build it into the plugin.

I could also probably spawn a pile of money at the player's position if their currency is negative, but then everyone would get more money.

I also wanted to try SDKTools and using CTFPlayer::AddCurrency(int), but I'm still bad at getting signatures for these things.

Suffice to say, I haven't found any viable fixes yet.
Tylerst is offline
tunasushi
New Member
Join Date: Aug 2012
Old 08-19-2012 , 15:12   Re: [TF2] Set Cash(Mann vs Machine mode)
Reply With Quote #37

Is anyone alse getting this error?
Code:
[SM] No matching client was found
I typed in "sm_addcash tunasushi 1000" (without quotes)
Am I doing anything wrong? Do I have to put in my steam ID? Thanks!
tunasushi is offline
Jim E. Rustler
BANNED
Join Date: Jul 2012
Old 08-19-2012 , 15:38   Re: [TF2] Set Cash(Mann vs Machine mode)
Reply With Quote #38

Quote:
Originally Posted by tunasushi View Post
Is anyone alse getting this error?
Code:
[SM] No matching client was found
I typed in "sm_addcash tunasushi 1000" (without quotes)
Am I doing anything wrong? Do I have to put in my steam ID? Thanks!
Code:
/setcash @me 1000
-or-

Code:
/setcash "tunasushi" 1000
Names have to be double quoted.
Jim E. Rustler is offline
darklordpazuzu
New Member
Join Date: Aug 2012
Old 08-19-2012 , 22:25   Re: [TF2] Set Cash(Mann vs Machine mode)
Reply With Quote #39

Thanks for the reply. I will admit I didn't read through the whole thread, so I missed all that.

I enjoy the plugin, and the random users that joined did as well. Thank you for making it.
darklordpazuzu is offline
avgn360
Junior Member
Join Date: Aug 2012
Old 08-20-2012 , 06:26   Re: [TF2] Set Cash(Mann vs Machine mode)
Reply With Quote #40

amazing plug-in. thanks to your work.
avgn360 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:33.


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