Model changes and logic_branch's. Input form console?

chickenmobile

2009-07-15 07:17:22

I've been trying to make a map that involves scripting of changing characters to different player models. I have done this BUT there is the problem that people may want to play in team-deathmatch and mixed characters may be difficult to distinguish between teams (especially if they are far away).
It is easy to create a filter that changes player models depending whether they are rebel or combine (filter_acticvator_team) but what I want to know is how can I check whether a command in the console is true or false (1 or 0) so then I can disable the model changing trigger.

Using a Logic_branch im trying to test whether the command "mp_teamplay" is set to 0 or 1 BUT I have definitely no idea how to do this. Do I need scripting in a text file separate from the map file? Do I need another entity that gets input and output values? How can I do it? :?
Attachments
My models, the player model will change when players will spawn. But what about team deathmatch?
My models, the player model will change when players will spawn. But what about team deathmatch?
people.jpg (130.1 KiB) Viewed 344 times

Pernicious

2009-07-15 09:11:48

I say, using the filter and the logic case/'s, dont bother.
If both case are being triggered correctly its all good, only that ppl are limited to wat playermodel they get by wether they are combine are rebels(combine = male, rebel = female), but i think thats a good thing, that way u can chose wether ur female or male.

chickenmobile

2010-04-29 07:38:37

I figured it out and just needed a bit of logic, I made it a reverse filter so then teams cannot activate the trigger and vice versa with the other trigger.

This model changer thing is cool however whenever there is needed a mp_restart 1 it crashes the game. I'm going to make another version.

Pernicious

2010-04-29 10:43:52

Win.

chickenmobile

2010-04-30 05:04:19

nah-uh, your a fail.

Pernicious

2010-04-30 05:29:02

Calling me a fail is a fail of epic proportions.