Raised This Month: $ Target: $400
 0% 

artificial win condition


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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