A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »Single Player errors!

Author Topic: Single Player errors! (6 messages, Page 1 of 1)
Moderators: Dennis

Georgespartan01
Joined: Nov 1, 2010


Posted: Dec 13, 2010 10:48 PM    Msg. 1 of 6       
After testing my single player maps, many errors started like:

1.- At the begining, there is a little cutscene, the problem is that theres no camera movement, it only show the player in first person and i can´t move it, whe in use the command camera_control its dead, i can´t move the camera.

2.- I set the AIs friends to "Human" But they still shooting me. ¿Why?

3.-¿How i can make the character starts with no weapons, like the beginning of a10? actually i downloaded a first person arms, that only punch the enemies, but this arms can´t be changed for weapons.

4.-¿How i can make the AIs friends, followe me everywhere!

PLEASE ANSWER THIS TO FINISH A GREAT PART OF MY MAP!!! :D


Polamee
Joined: Feb 25, 2008

MP2SPMT's founder


Posted: Dec 13, 2010 11:05 PM    Msg. 2 of 6       
1. I can't tell what's wrong without looking at your scripts. Post them here.

2. The player's team is actually team 0 (not team 2 human), but for the sake of SP, use the command (ai_allegiance "player" "human"). This will ally the human team with the player.

3. Set a starting profile without weapons.

4. Dude I told you this before =.=

Quote: --- Original message by: Gamma927
1) Create an AI encounter, and set up firing positions in groups (how?)
a) Before I proceed, I'll explain what I mean by "groups". Each group is an area where the AI would fight in given the player's proximity. For instance, if you have a series of rooms, and you make each room have a separate group of firing positions, the AI would fight in each room. Let's say the player's in room 1. Thus, the AI would only use the firing positions within room 1. When the player moves to room 2, the AI will use the firing positions in room 2. If you don't understand this, that's not too much of a problem. Just put firing positions down in groups. How?
b) To put firing positions down in groups, in the properties pane, there will be a dropdown box to specify a certain letter. Each letter represents a certain group. If you place half the firing positions down with A (red), and half with B (blue), then they'll choose between groups whenever convenient. Remember to keep the A firing positions grouped together, and the B firing positions in a separate group.

2) Create one squad (only one). Specify the actor variant, the difficulty, etc. Check automatic migration.
3) Create a new squad. For this squad, do NOT specify the actor variant or difficulty. Instead, the only things you do are to check automatic migration and follow the directions below.
4) In the attacking, defending boxes, put in the letter of a firing position group (for example, A for firing position group A)
5) Repeat for all firing position groups.
6) Use the ai_follow_target_players command in a script.

That should be it.


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Dec 13, 2010 11:06 PM    Msg. 3 of 6       
1. (camera_control 1) gives the script control of the camera. After that you can use (camera_set cam5 30) stuff like that

2. (ai_allegiance "player" "human") You may want to add in this:
(script continuous betrayal
(if
(ai_allegiance_broken "player" "human)
(sleep 300)
(ai_allegiance "player" "human")
)
This means if the player has killed some allies and the allegiance between the two teams is broken, ten seconds later they are bff's again

3. Make a starting profile with no guns. Dunno about the hands and dunno what you mean but you could add them in the starting profile

4. (ai_follow_target_players middle_marines)
where middle_marines is the ai encounter


Georgespartan01
Joined: Nov 1, 2010


Posted: Dec 14, 2010 04:37 PM    Msg. 4 of 6       
1.- The cameras still not working

2.- The AI don´t follow me,

3.- When i started with no weapons, after crouching i can´t uncrouch xD

AIs are now my friend, ok but here are my script.

script startup cutscene

(cinematic_start)
(camera_control 0)
(camera_set cut1 100)
(sleep 50)
(camera_set cut2 100)
(sleep 50)
(camera_set cut3 100)
(sleep 100)
(camera_set cut4 100)
(sleep 100)
(camera_control 1)
(sleep 75)
(cinematic_stop)
(cinematic_set_title inicio)
)


(script startup hud_cross_hide
(begin
(hud_show_motion_sensor false)
)
)

(script continuous nocheatingSP
(sleep 5)
(if (= cheat_deathless_player 1) (begin (set cheat_deathless_player 0)

(sv_say "Hagas lo que hagas, en Taos no vas a sobrevivir...")))
(if (= rasterizer_wireframe 1) (begin (set rasterizer_wireframe 0)(sv_say

"¿Que es lo que intentas hacer?...")))
(if (= cheat_super_jump 1) (begin (set cheat_super_jump 0) (sv_say "Un

gran salto no te ayudara a escapar!...")))
(if (= cheat_medusa 1) (begin (set cheat_medusa 0)
(sv_say "Ya estas feo, y ellos también, así que no moriran del

susto...")))
(if (= cheat_omnipotent 1) (begin (set cheat_omnipotent 0) (sv_say "Ellos

seguiran siendo resistentes!...")))
(if (= cheat_bump_possession 1) (begin (set cheat_bump_possession 0)

(sv_say "Ya estan poseidos por demonios!...")))
(camera_control 0)
)

(script startup aispawn
(sleep_until (volume_test_objects encounters (players))15)
(ai_place Zombies)
(ai_place Sobrevivientes)
(game_save_no_timeout)
)


(script startup ai_enhancement
(ai_follow_target_players Sobrevivientes)
)

(script startup cutscene1
(sleep_until (volume_test_objects encounters (players)) 15)
(game_save_totally_unsafe) ;not neccessary
(fade_out 1 1 1 30)
(player_enable_input 0)
(garbage_collect_now) ; cleans the map a bit
(rasterizer_decals_flush); cleans the map a bit
(sleep 60)
(cinematic_start)
(cinematic_show_letterbox 1)
(camera_control 1)
(camera_set inicio1 30)
(sleep 30)
(fade_in 1 1 1 30)
(sleep 60)
(camera_set inicio2 90)
(sleep 60)
(camera_set inicio3 90)
(sleep 60)
(camera_set inicio4 90)
(sleep 60)
(camera_set inicio5 90)
(sleep 60)
(fade_out 1 1 1 30)
(cinematic_show_letterbox 0)
(cinematic_stop)
(garbage_collect_now)
(rasterizer_decals_flush)
(sleep 30)
(camera_control 0)
(fade_in 1 1 1 30)
(player_enable_input 1)
)



(script continuous betrayal
(if
(ai_allegiance_broken "player" "human")
(sleep 300)
(ai_allegiance "player" "human")
)
)

(Script startup Aifollow
(ai_follow_target_players Sobrevivientes)
)


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Dec 14, 2010 07:46 PM    Msg. 5 of 6       
(camera_control 1)
instead of (camera_control 0) at the start


Georgespartan01
Joined: Nov 1, 2010


Posted: Dec 14, 2010 08:19 PM    Msg. 6 of 6       
still not working! :/

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 10:42 AM 156 ms.
A Halo Maps Website