
Eijsvogel
Joined: Jun 21, 2008
SP Map Flood Assault Released!
|
Posted: Mar 12, 2009 04:10 PM
Msg. 1 of 10
Hey all,
The title says it.. i need to know how to switch BSP.
I think i figured,
If you use, lets say, (switch_bsp c40_b)
Will you go to that BSP then,? if yes, where in that BSP?
If anyone could help me with this, i will be very happy.
Thanks in advance!
|
|
|

Lone Warrior
Joined: Dec 14, 2008
-Himalayan Wizard and Mystical Guru of the Mts.-
|
Posted: Mar 12, 2009 05:27 PM
Msg. 2 of 10
Find the area of the 2 bsp's you want to switch between intersection point, place a trigger volume called bsp 1,2 then save.
You can also use a script method aswell.
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Mar 12, 2009 06:21 PM
Msg. 3 of 10
For the script method, refer to the index of the BSP. The first BSP is 0, the second is 1, and so forth. Open the scenario in Guerilla to find out. The command is: (switch_bsp [index of BSP])
|
|
|

Eijsvogel
Joined: Jun 21, 2008
SP Map Flood Assault Released!
|
Posted: Mar 13, 2009 02:50 AM
Msg. 4 of 10
Quote: --- Original message by: Gamma927For the script method, refer to the index of the BSP. The first BSP is 0, the second is 1, and so forth. Open the scenario in Guerilla to find out. The command is: (switch_bsp [index of BSP])
Okay thanks. I Deleted all BSP's Exept C40_C, re-added C40_B But, if you switch bsp, where do you spawn in that BSP? on a spawn point? or randomly?
|
|
|

sierra117
Joined: Jan 10, 2008
If sex is good exercise, why are there fat sluts?
|
Posted: Mar 13, 2009 03:12 AM
Msg. 5 of 10
you dont spawn, except at startup. so when you switch bsps; you will be at the exact spot. whether your in the bsp or not. You need to teleport the player after the bsp switch to where you want. the command to teleport is
(object_teleport player0 FLAG)
or something like that. Havnt used that command in a while so i cant remember if the FLAG goes first or the player0. and if sapien says that player0 doesn't exist copy this at the very top of your script.
(script static "unit" player0 (unit (list_get (players )0 )))
So a example script would look like this. (directly from b30 when the chief kicks the rock)
(script static "unit" player0 (unit (list_get (players )0 )))
(script startup etc (object_teleport (player0 )player0_ledge_wait ) )
where player0_ledge_wait is the FLAG
|
|
|

electricSquid
Joined: Sep 17, 2008
Get ready for some chocolate pain...
|
Posted: Mar 13, 2009 02:07 PM
Msg. 6 of 10
What happens if the player spawns with no BSP under his feet?
|
|
|

Lone Warrior
Joined: Dec 14, 2008
-Himalayan Wizard and Mystical Guru of the Mts.-
|
Posted: Mar 13, 2009 02:19 PM
Msg. 7 of 10
Means you got them linked improperly.
|
|
|

Eijsvogel
Joined: Jun 21, 2008
SP Map Flood Assault Released!
|
Posted: Mar 13, 2009 02:32 PM
Msg. 8 of 10
Quote: --- Original message by: Lone Warrior Means you got them linked improperly. I got everything fine... exept the hud_messages..
|
|
|

Lone Warrior
Joined: Dec 14, 2008
-Himalayan Wizard and Mystical Guru of the Mts.-
|
Posted: Mar 13, 2009 06:02 PM
Msg. 9 of 10
My post was directed to electricsquid.
|
|
|

Eijsvogel
Joined: Jun 21, 2008
SP Map Flood Assault Released!
|
Posted: Mar 13, 2009 06:23 PM
Msg. 10 of 10
Quote: --- Original message by: Lone Warrior My post was directed to electricsquid. Figured that ^^ No idea wy i quoted, i always do that xD Can be closed by the way, Its Done.
|
|
|