Re: HaloCE - OpenSauce - V3 Released
Is there a way to switch a player's team using OS? change_team exists in normal Halo, but it has to be run by the client.
Also
Code:
(global boolean is_os_enabled (>= ai_debug_path_maximum_radius 3.0) )
(global boolean is_host false)
(script startup testing
(if is_os_enabled
(begin
(set is_host (machine_is_host))
(if is_host
(begin
(if
(and
(= (game_engine_data_get_integer "type") 2)
(= (game_engine_data_get_integer "is_teams") 0)
)
(begin
(sv_say "Gametype is right.")
)
(begin
(sv_say "Wrong gametype or team settings.")
)
)
)
)
)
)
)
Can't compile this in OS Sapien. I get this error:
http://dl.dropbox.com/u/1455347/os_error.png
I think it's because it's returning void instead of a long.
Re: HaloCE - OpenSauce - V3 Released
Upgrade to the latest version of OS
Also,
Code:
(global boolean is_host (machine_is_host))
Re: HaloCE - OpenSauce - V3 Released
I didn't want to use that function without first checking if OS is enabled. I intend to have this work in both .map and .yelo forms.
Edit: When was this fixed? I thought I had the newest version from when CMT released a50. Just installed it again and it's working fine now.
Edit edit: Also back to the first question, there a way to change a players team via OS?
Re: HaloCE - OpenSauce - V3 Released
I suggest you re-read the docs about the new script interfaces and compatibility. In order to use the new script interfaces, you *have* to build the map with memory upgrades enabled (ie, .yelo).
There was a typo in CheApe.map's source code, it was fixed in 3.0.2. The OS version number should flash in game at the bottom left part of the screen when there's a new version.
None of the new scripting interfaces support forcing a player's team, so no.
Re: HaloCE - OpenSauce - V3 Released
Isn't this used to check if the player is using OS?
Code:
(global boolean is_os_enabled (>= ai_debug_path_maximum_radius 3.0))
That way I could build 2 different versions of the map and the one with OS can run OS specific code?
Re: HaloCE - OpenSauce - V3 Released
Any scripts which use any OS-specific script interfaces will require the use-memory-upgrades setting. We expose the version of OS thru that unused global. However, there's no way to use scenarios/maps with OS-based scripts in the stock game. Doesn't matter if they're never called.
Re: HaloCE - OpenSauce - V3 Released
About your changing teams thing, have the clients do it themselves.
Code:
(if (volume_test_object my_trig_vol (unit (list_get (players) (player_local_get)))) (change_team <short>))
*shrug*
Just have the clients allowed to check the criteria, and do it via player_local_get (OS command)
Re: HaloCE - OpenSauce - V3 Released
HUD scaling seems to be working only in games created by me. If I join a internet server the scaling most likely doesn't work. Anyone else getting this?
Re: HaloCE - OpenSauce - V3 Released
HUD scaling is really glitchy for me as well. Sometimes it just randomly switches back and forth between scaled and not-scaled really quickly for no apparent reason.
Re: HaloCE - OpenSauce - V3 Released
Works fine for me. Check for GPU driver updates.