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 »Targeting issues and other problems

Author Topic: Targeting issues and other problems (5 messages, Page 1 of 1)
Moderators: Dennis

SOI_7
Joined: Mar 23, 2012

Welcome to the true man's world


Posted: Mar 24, 2012 11:01 AM    Msg. 1 of 5       
Yo Guys! Here is my problem:
I'm making a single player map, where you play as an Elite. I'm using one of the Energy Sword tags from halomaps.org, and it works pretty well (lunge etc.), but I've edited it to make it lose battery like in Halo 2/3/Reach. Unluckly, it loses battery each time I press the firing button, and when it's empty, I can continue shooting! O.O (I've already checked "Can't fire at maximum age"). I want it to lose battery only when the reticle is red, and when I hit an enemy with a melee attack, and of course I don't want it with unlimited battery!
Other problems I can't resolve:
-Teh Lags's Heretics have that thorn-like things on their back bugged: when I make the player use that gbxmodel, they work well, but if I make an elite use that model, it hasn't the thorns! (I've read some previous posts, and I realized that there are no Halo 2 Heretic Elite tags)
-Can't add custom music to my map T.T. I've compiled a script but it doesn't work, and if i try to add my music as background sound, it works horribly.
Can someone help me? Thanks in advice


kirby_422
Joined: Jan 22, 2006

Apparently public enemy number 1?


Posted: Mar 24, 2012 12:05 PM    Msg. 2 of 5       
(global short p0_kills (player_data_get_integer 0 "kills_this_lifetime"))

(script static unit p0
(unit (list_get (players) 0))
)
(script static boolean sword_age
(if (!= p0_kills (player_data_get_integer 0 "kills_this_lifetime"))
(begin
(if (unit_has_weapon_readied (p0) "weapons\energy_sword\h2_energy_sword")
(begin
(if (= (unit_data_get_integer (p0) "current_weapon_index") 0) (weapon_data_set_real (player_data_get_object 0 "weapon0") "age" (+ (weapon_data_get_real (player_data_get_object 0 "weapon0") "age") 0.025)))
(if (= (unit_data_get_integer (p0) "current_weapon_index") 1) (weapon_data_set_real (player_data_get_object 0 "weapon1") "age" (+ (weapon_data_get_real (player_data_get_object 0 "weapon1") "age") 0.025)))
(if (= (unit_data_get_integer (p0) "current_weapon_index") 2) (weapon_data_set_real (player_data_get_object 0 "weapon2") "age" (+ (weapon_data_get_real (player_data_get_object 0 "weapon2") "age") 0.025)))
(if (= (unit_data_get_integer (p0) "current_weapon_index") 3) (weapon_data_set_real (player_data_get_object 0 "weapon3") "age" (+ (weapon_data_get_real (player_data_get_object 0 "weapon3") "age") 0.025)))
))
(set p0_kills (player_data_get_integer 0 "kills_this_lifetime"))
))
<INSERT P1 - P15>
)

This requires OS.
I would condense it, but then it would probably be harder to read (right now, its expecting you to make copies for the next 15 players. to condense it, the only real thing is making a static that checks a number variable, and syncs the kills to the correct variable accordingly (if you feel up to it *shrug*)) To make them unable to fire or anything, you can add another clause that when the age <= 1, set the heat to 1 and have the weapons heat never decrease (get them stuck overheating)

these elites, they have to be using some form of different animations when the AI are using them. Figure out what animation they are, and disable em.

Your music, what sort of script command are you using? calling on a sound looping should work fine, have you tried compiling other scripts to insure you know how to compile scripts successfully? And if it sounds bad as a background sound, then its how you setup your sound tags.


SOI_7
Joined: Mar 23, 2012

Welcome to the true man's world


Posted: Mar 24, 2012 12:55 PM    Msg. 3 of 5       
2) Well, I've changed the animations, and I find always the same problem (Elites). Do you know if someone made decent Heretic Elites, maybe using the same model?
3) I've used this script:
(script startup music
(sound_looping_start levels\test\cave\music\level1 none 1)
)
Of course level1 is a .sound_looping tag.
1)I didn't touched the sword because I have another question for you before using OS: if I apply that code, will it change the whole tag, and so that will work for anyone that uses my map via Halo CE, or I need to run via OS my map to see these changes?


kirby_422
Joined: Jan 22, 2006

Apparently public enemy number 1?


Posted: Mar 24, 2012 05:48 PM    Msg. 4 of 5       
I myself care about functionality, not graphics, so I wouldn't know any elites laying about lol.

Are you sure the script is actually compiling? just put a bunch of garbage in the file before compiling the script, see if sapien even notices. Also, what is wrong with the sound when you listen to it?

And about scripts, they don't actually change the tag files. This runs in the background to change the age (aka, battery) when it notices your kill count go up while holding the sword (so, grenades could also trigger this). OS is required for maps with OS scripts, so if you and your target audience aren't using OS, then it would be best to just go without it.


SOI_7
Joined: Mar 23, 2012

Welcome to the true man's world


Posted: Mar 25, 2012 10:18 AM    Msg. 5 of 5       
Ok, maybe I'll wait for any Heretic release, contenting myself with those I have already (sigh).

The script, I've wrote some stupid things in the code, and when I compile it, Sapien always says "script successfully compiled". Using my music as background sound, it plays just in some areas of the map, and sometimes goes back to the beginning or goes ahead randomly.

OS, maybe I'll try your code. If I'm not wrong, OS saves new maps in .yelo format, am I right?

New:
I'm still here (XD) but I've some news.
First of all, OS doesn't work on my pc, so, unless you know if there is another way to make the sword work as I want without it, I think we (I) should give up.
Heretics: I'VE SOLVED IT! HOORAY!
Music: Nevermind, I've solved it ^^
Please, someone help me!
Edited by SOI_7 on Mar 26, 2012 at 02:19 PM
Edited by SOI_7 on Apr 3, 2012 at 10:18 AM
Edited by SOI_7 on May 28, 2012 at 02:58 PM

 

 
Previous Older Thread    Next newer Thread







Time: Sat January 21, 2023 12:32 AM 125 ms.
A Halo Maps Website