Author Topic: How do you make a credit dispenser?  (Read 7507 times)

Emperor Jack

  • Posts: 93
  • Turrets: +1/-0
How do you make a credit dispenser?
« on: September 09, 2010, 06:52:37 am »
How do you make a credit dispenser? I need to know how for my teamkill free for all map. Also is it possible to make a team stage up after a certain amount of time? If anyone knows the infomation will be much appreiciated.
Thanks

UniqPhoeniX

  • Spam Killer
  • *
  • Posts: 1376
  • Turrets: +66/-32
Re: How do you make a credit dispenser?
« Reply #1 on: September 09, 2010, 10:00:28 am »
Both require AMP. Credits with target_fund, stage with target_stgctrl targeted by a delay which is started by for example trigger_always.

Emperor Jack

  • Posts: 93
  • Turrets: +1/-0
Re: How do you make a credit dispenser?
« Reply #2 on: September 09, 2010, 11:45:00 pm »
Thanks but AMP is what????

Aelita

  • Posts: 743
  • Turrets: +147/-34
Re: How do you make a credit dispenser?
« Reply #3 on: September 10, 2010, 01:51:45 am »

Emperor Jack

  • Posts: 93
  • Turrets: +1/-0
Re: How do you make a credit dispenser?
« Reply #4 on: September 10, 2010, 02:01:55 am »
Ok ive tried putting the new qvm everywhere and i cant manage to find where to put it coz when i test the map. ie: devmap mapname. It dosnt give me creds. Plus do other players have to download that qvm when they play the map on a server?

DraZiLoX

  • Posts: 844
  • Turrets: +24/-24
Re: How do you make a credit dispenser?
« Reply #5 on: September 10, 2010, 05:26:47 pm »
1. put it in fs_homebase/vm.
2. No they doesnt have to download it.

Emperor Jack

  • Posts: 93
  • Turrets: +1/-0
Re: How do you make a credit dispenser?
« Reply #6 on: September 11, 2010, 04:33:15 am »
You mean tremulous/base/vm?

Emperor Jack

  • Posts: 93
  • Turrets: +1/-0
Re: How do you make a credit dispenser?
« Reply #7 on: September 11, 2010, 04:49:19 am »
It worked tyvm

Emperor Jack

  • Posts: 93
  • Turrets: +1/-0
Re: How do you make a credit dispenser?
« Reply #8 on: September 11, 2010, 06:59:32 am »
When i set a trigger always to a target delay which is targeted to a targe_stage control. it dosnt stge up. What could I be doing wrong?

DraZiLoX

  • Posts: 844
  • Turrets: +24/-24
Re: How do you make a credit dispenser?
« Reply #9 on: September 11, 2010, 09:29:25 am »
Ever heard of button?

God, maker of the world

  • Guest
Re: How do you make a credit dispenser?
« Reply #10 on: September 11, 2010, 03:32:58 pm »
When i set a trigger always to a target delay which is targeted to a targe_stage control. it dosnt stge up. What could I be doing wrong?

From working on Piano Lessons, I know that (at least in normal 1.1, I don't know about AMP) a target_delay does not begin to carry the information to its targets before the impulse that is given to it has stopped. So, your target_always (if that's like a permanent value of "1") prevents the target_delay from doing its thing.

EDIT: I suggest that you let the target_delay not just fire whatever you want to fire, but let it also fire a 2nd target_delay which later fires the first one again. A loop. But you need to get it going first, which could be done with a trigger_multiple that someone has to pass through. Remember that a trigger source that gives a permanent impulse is unusable for this.

There's probably an even simpler solution, but I currently can't think of it.
« Last Edit: September 11, 2010, 04:05:54 pm by God, maker of the world »

Emperor Jack

  • Posts: 93
  • Turrets: +1/-0
Re: How do you make a credit dispenser?
« Reply #11 on: September 11, 2010, 11:21:38 pm »
Thanks. Will give it a try

Crava_Loft

  • Guest
Re: How do you make a credit dispenser?
« Reply #12 on: September 12, 2010, 12:01:39 am »
rob an ATM

Emperor Jack

  • Posts: 93
  • Turrets: +1/-0
Re: How do you make a credit dispenser?
« Reply #13 on: September 12, 2010, 01:08:34 am »
OK trigger multiple connected to a target delay connected to a target_stagecntrl not working. Have i not entered n the corect stuff? All i want is humans to stage up in 5 mins exactly. And the timer must start at start of game. CAn someone plz give it a go on their own map and try get it to work? (for quicker testing put it to say... 10 seconds)

UniqPhoeniX

  • Spam Killer
  • *
  • Posts: 1376
  • Turrets: +66/-32
Re: How do you make a credit dispenser?
« Reply #14 on: September 12, 2010, 03:20:28 am »
To increase human stage by 2, 10 sec after game start:
trigger_always: target = delay
target_delay: targetname = delay, target = stgctrl, gate = 262146, wait = 10
target_stgctrl: targetname = stgctrl

The gate value is sent to the target_stgctrl. 262146 = 262144 (which is TEAM_BIT = 1 (for humans)) + 2 (how much to change stage by, 0/1/2).
To change stage lower you need to add SIGN_BIT 1 in the incoming gate value, which is 131072, so to set human stage lower by 2, you would need gate value 262144 + 131072 + 2 = 393218.

Emperor Jack

  • Posts: 93
  • Turrets: +1/-0
Re: How do you make a credit dispenser?
« Reply #15 on: September 12, 2010, 04:24:49 am »
Ok, I tried this and it didn't work. Did it work for you Phoenix?

UniqPhoeniX

  • Spam Killer
  • *
  • Posts: 1376
  • Turrets: +66/-32
Re: How do you make a credit dispenser?
« Reply #16 on: September 12, 2010, 02:22:28 pm »
It works, here is .map with everything you could possibly need regarding target_stgctrl: automatically setting AS2 at 15sec, HS2 at 20sec, 4 buttons to change either teams stage up/down by 1. It doesn't change the g_humanStage/g_alienStage variables on server, but seems to work otherwise.

Emperor Jack

  • Posts: 93
  • Turrets: +1/-0
Re: How do you make a credit dispenser?
« Reply #17 on: September 13, 2010, 05:28:04 am »
Thanks so much Phoenix!  ;D :D ;D

your face

  • Community Moderators
  • *
  • Posts: 3843
  • Turrets: +116/-420
Re: How do you make a credit dispenser?
« Reply #18 on: September 13, 2010, 05:45:45 am »
rob an ATM

ATM is credit dispenser even without having to rob it :D
spam spam spam, waste waste waste!

Emperor Jack

  • Posts: 93
  • Turrets: +1/-0
Re: How do you make a credit dispenser?
« Reply #19 on: September 13, 2010, 06:05:51 am »
There are some nice scam techniques to making fake atms and robbing pll! XD