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 »i need feedback\help with my credits system

Author Topic: i need feedback\help with my credits system (3 messages, Page 1 of 1)
Moderators: Dennis

casual mods
Joined: May 2, 2013

I be chillin


Posted: May 24, 2013 03:28 AM    Msg. 1 of 3       
im going to try and use ammo as my credits,
i created a weapon called credit_card

i have a few questions:

1: is there any reason this cant work?

2: how would i script a device control to take ammo from the credit_card?
id start like this

(script continuous credit_card_check
(unit_has_weapon_readied player0 credit_card)
)

3: how would i create an ammo counter that counts 1000s and 100s place?
the assault rifle counter stops at 60,
i want to add a digital ammo display on the credit_card.weapon for credits.


kirby_422
Joined: Jan 22, 2006

Apparently public enemy number 1?


Posted: May 24, 2013 03:49 AM    Msg. 2 of 3       
1) No reason it CAN'T work, plenty of reasons you shouldn't do it though.

2) You'd use OpenSauce 3.1.1 when it gets released (since the command is broken in 3.1.0) to prod into a function block in the weapon (The same function block your using for the shaders). So, (object_data_get_real (unit_data_get_object (unit (list_get (players) 0)) weapon0) function_out a), this will return it as a decimal, 1 being full, 0 being empty. The exact number 1 stands for, would be based on how much ammo you allow it to hold. Simply times this number by the total amount of ammo you allow. For removing the ammo, you destroy the object (with physical damage) and give the player a new one, which you then load full of ammo to the new position.

3) Add moar shader permutations for hundreds and thousands.


casual mods
Joined: May 2, 2013

I be chillin


Posted: May 24, 2013 05:33 AM    Msg. 3 of 3       
im going to try and do it without OS,
i tried this whats your feedback?

made credit_card.weapon

rounds initial 100
rounds total 9999
rounds loaded 50
fire rate 25
bullet.damage_effect damage set to 1

shop owner has shield 48 so shield depletes and the last bullet spawns the item
i editied shield depletion.effect to spawn credit_card

create a shop with bipeds that spawn items when hit with credit card
so its like giving money to shop owner and they spawn what you want
Edited by casual mods on May 24, 2013 at 06:25 AM

 

 
Previous Older Thread    Next newer Thread







Time: Sat January 21, 2023 2:38 AM 141 ms.
A Halo Maps Website