News:

Come Chat with us live! Learn how HERE!

Main Menu

How do you make a credit dispenser?

Started by Emperor Jack, September 09, 2010, 06:52:37 AM

Emperor Jack

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

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

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

1. put it in fs_homebase/vm.
2. No they doesnt have to download it.



Emperor Jack

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?


God, maker of the world

#10
Quote from: Emperor Jack on September 11, 2010, 06:59:32 AMWhen 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.



Emperor Jack

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

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

Ok, I tried this and it didn't work. Did it work for you Phoenix?

UniqPhoeniX

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.


your face

Quote from: dolby on February 19, 2003, 06:44:44 PM
spam spam spam, waste waste waste!

Emperor Jack

There are some nice scam techniques to making fake atms and robbing pll! XD