Raised This Month: $ Target: $400
 0% 

artificial win condition


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
[FBX]
Senior Member
Join Date: May 2004
Old 06-02-2004 , 08:09   artificial win condition
Reply With Quote #1

how do you set up an artificial win condition? I only need it for the CTs and I tried making a player the VIP and then drawing a the winzone around him but the winzone never gets drawn

Here is the code of everything I tried, the most recent being the stuff thats not commented out:

Code:
new idx = create_entity("func_vip_safetyzone")
			new posit[3]
			new mins[3]
			get_user_origin(ptd, posit, 0)
			/*posit[0] -= float(250.0)
			posit[1] -= float(250.0)
			posit[2] -= float(250.0)
			entity_set_vector(idx, EV_VEC_absmin, posit)
			posit[0] += float(1.0)
			posit[1] += float(1.0)
			posit[2] += float(1.0)
			entity_set_vector(idx, EV_VEC_maxs, posit)
			posit[0] += float(500.0)
			posit[1] +=  float(500.0)
			posit[2] += float(500.0)
			entity_set_vector(idx, EV_VEC_absmax, posit)
			posit[0] -= float(1.0)
			posit[1] -=  float(1.0)
			posit[2] -= float(1.0)
			entity_set_vector(idx, EV_VEC_absmax, posit)
			posit[0] = float(90000.0)
			posit[1] = float(90000.0)
			posit[2] = float(90000.0)
			/*entity_set_vector(idx, EV_VEC_size, posit)
			entity_set_vector(idx, EV_VEC_absmin, posit)
			entity_set_vector(idx, EV_VEC_maxs, posit)
			entity_set_vector(idx, EV_VEC_absmax, posit)
			entity_set_vector(idx, EV_VEC_absmax, posit)
			entity_set_vector(idx, EV_VEC_size, posit)*/
			set_size(idx, mins, posit)
			entity_set_string(idx, EV_SZ_model, "*30")
			cs_set_user_vip(ptd, 1)
			cs_set_user_team(ptd, 2)
			force_use(ptd, idx)
[FBX] is offline
[FBX]
Senior Member
Join Date: May 2004
Old 06-02-2004 , 23:52  
Reply With Quote #2

not one person knows of a method to get a team to win without slaying the other team?
[FBX] is offline
BAILOPAN
Join Date: Jan 2004
Old 06-03-2004 , 01:57  
Reply With Quote #3

1] I think that would only work if you did it with pre-existing things. In cs_ maps maybe touching the hostages to the rescue point and similarly with as_ maps.

2] I don't think it is possible to simulate a round win (yet), I've looked into stopping rounds from ending and I don't think it's possible.
__________________
egg
BAILOPAN is offline
[FBX]
Senior Member
Join Date: May 2004
Old 06-03-2004 , 08:23  
Reply With Quote #4

I found a way... It'll be included when I post my cs_realism update. I just gotta work the little kinks out of it.
[FBX] is offline
BAILOPAN
Join Date: Jan 2004
Old 06-03-2004 , 14:45  
Reply With Quote #5

What is it?
__________________
egg
BAILOPAN is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 06-03-2004 , 20:13  
Reply With Quote #6

Slay the terrorist team... instant win
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
BAILOPAN
Join Date: Jan 2004
Old 06-03-2004 , 20:23  
Reply With Quote #7

LOL, well DUH... that's not exactly a nice solution...
__________________
egg
BAILOPAN is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 06-03-2004 , 20:34  
Reply With Quote #8

It works
Couldn't you also move the terrorists to the CT side for long enough to trigger the win, then move them back?
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
[FBX]
Senior Member
Join Date: May 2004
Old 06-03-2004 , 21:57  
Reply With Quote #9

device has it- I can simulate a win condition as long as one team player on the losing team is dead. When I want them to win, I use cs_change_team to move all the Ts to spectators and then respawn all of the dead players and silent kill them (so there is no penalty)- this triggers counterstrike to "check the teams" to see if any are left alive. Since no Ts are left alive, it declares a counter-terorrist victory. Then, I move all of the spectator Ts back to their team before the respawn and they get money and everything as normal. This generally works fine and has only one side effect (all the dead players suddenly see their dead bodies at spawn and probably wonder why).

The big problem is when all of the team is still alive when they are supposed to lose. If you move all of the living Ts to spectator suddenly it wont be a victory for the CTs. In fact, the round will have to end by round time, and then the map will restart once someoen dies. I've found a way around that by stating "Osama bin Ladin has executed the entire terrorist team for giving the CTs the bomb!!!" and just slaying all of them...

I could do without the last part or any of that respawn part if fakefull worked for amxx; but it doesnt. If fakefull worked I could just spawn a dummy player then silent kill him so fast nobody would notice and it would achieve the same effect (assuming I would also be allowed to do it when both teams are full).
[FBX] is offline
DopeFish
Senior Member
Join Date: Feb 2004
Old 06-04-2004 , 09:53  
Reply With Quote #10

slay the last bomb carrier.

since your problem only exists when none of the T's died, it means that a T that spawned with the bomb dropped it without dying. Just kill him, If he decided to throw away the bomb, then he definatly isn't playing with the team trying to achieve the mission. If he wanted to give the bomb to someone else then he should make sure someone else picks the thing up.

There is nothing worse than 5 T's guarding a bomb point and the stupid bomb carrier camping on the other side of the map (or the idiot with the bomb dropped it somewhere in between and someone has to go fetch it).

If the CT's can defuse the bomb, and all T's are alive, slay the dumbass T who had the bomb last for stupidness.
DopeFish is offline
Send a message via ICQ to DopeFish
Reply


Thread Tools
Display Modes

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 14:43.


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