Tremulous Forum

Media => Mapping Center => Topic started by: Emperor Jack on September 09, 2010, 06:52:37 am

Title: How do you make a credit dispenser?
Post by: Emperor Jack 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
Title: Re: How do you make a credit dispenser?
Post by: UniqPhoeniX 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.
Title: Re: How do you make a credit dispenser?
Post by: Emperor Jack on September 09, 2010, 11:45:00 pm
Thanks but AMP is what????
Title: Re: How do you make a credit dispenser?
Post by: Aelita on September 10, 2010, 01:51:45 am
Explained here. (http://tremulous.net/forum/index.php?action=search)
Title: Re: How do you make a credit dispenser?
Post by: Emperor Jack 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?
Title: Re: How do you make a credit dispenser?
Post by: DraZiLoX on September 10, 2010, 05:26:47 pm
1. put it in fs_homebase/vm.
2. No they doesnt have to download it.
Title: Re: How do you make a credit dispenser?
Post by: Emperor Jack on September 11, 2010, 04:33:15 am
You mean tremulous/base/vm?
Title: Re: How do you make a credit dispenser?
Post by: Emperor Jack on September 11, 2010, 04:49:19 am
It worked tyvm
Title: Re: How do you make a credit dispenser?
Post by: Emperor Jack 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?
Title: Re: How do you make a credit dispenser?
Post by: DraZiLoX on September 11, 2010, 09:29:25 am
Ever heard of (http://tremulous.net/forum/Themes/SlickPro_GraphiteV2/images/english/modify.gif) button?
Title: Re: How do you make a credit dispenser?
Post by: God, maker of the world 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.
Title: Re: How do you make a credit dispenser?
Post by: Emperor Jack on September 11, 2010, 11:21:38 pm
Thanks. Will give it a try
Title: Re: How do you make a credit dispenser?
Post by: Crava_Loft on September 12, 2010, 12:01:39 am
rob an ATM
Title: Re: How do you make a credit dispenser?
Post by: Emperor Jack 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)
Title: Re: How do you make a credit dispenser?
Post by: UniqPhoeniX 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.
Title: Re: How do you make a credit dispenser?
Post by: Emperor Jack on September 12, 2010, 04:24:49 am
Ok, I tried this and it didn't work. Did it work for you Phoenix?
Title: Re: How do you make a credit dispenser?
Post by: UniqPhoeniX on September 12, 2010, 02:22:28 pm
It works, here is .map with everything you could possibly need regarding target_stgctrl (http://drop.io/md12lw6): 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.
Title: Re: How do you make a credit dispenser?
Post by: Emperor Jack on September 13, 2010, 05:28:04 am
Thanks so much Phoenix!  ;D :D ;D
Title: Re: How do you make a credit dispenser?
Post by: your face on September 13, 2010, 05:45:45 am
rob an ATM

ATM is credit dispenser even without having to rob it :D
Title: Re: How do you make a credit dispenser?
Post by: Emperor Jack on September 13, 2010, 06:05:51 am
There are some nice scam techniques to making fake atms and robbing pll! XD