SC2Mapster Forums

Development > Triggers

Third person shooter help

  • 6 posts
    #1 Nov 14, 2010 at 03:17 UTC - 0 likes

    Aright guys i have this awsem map that i made that you start off in a hospital that is totaly destroyed and then you walk outside and obtain a marine suit from a dead marine than you can run around shooting zombiues hop in a car and drive round but any ways....
    i was wondering when you set the far clip which i did i was wondering if there is a way to like have fog right before it cuts it off cause far clip is very chopy but if i had fog it would make everything look much better
    also i was wondering how to make like a ammo bar that says ammo and mabye has a little icon but instead of the boss bar i have i would like a like little picture of a bullet like so and as i shoot it goes like a dark grey but is still there if you guys could help me with this id be gratefull. :D

                                    Ammo
                  l l l l l l l l l l l l l l l l l l l l l l l l l l

    #2 Nov 14, 2010 at 08:22 UTC - 0 likes

    @Spiritgod: Go

    you could make a bunch of dialog image items in a row with dialog title Ammo and have background transparent. Then set these dialogs as arrays. Then make a trigger that starts when he shoots and have the dialog array set as a function variable, this trigger will turn on and off the dialogs. This function variable will then be modified from another trigger that counts the ammo count.

    Rough idea havn't thought it all the way but it seems like it will go like this.

    Last edited Nov 14, 2010 by gamfvr
    #3 Nov 14, 2010 at 15:46 UTC - 0 likes

    im not eactly folowing that so make a bunch of dialogs like this?? each [ ] being a new dialog and the l as the ammo and than just hide background and when i shoot i have a trigger that will delete a dialog and re add it when i relod? there has got to be an easier way any other ideas?

    [ Ammo ] [l] [l] [l] [l] [l] [l] [l] [l] [l] [l] [l] [l] [l] @gamfvr: Go

    #4 Nov 15, 2010 at 00:59 UTC - 0 likes

    come on guys bumpy bumpy bummpy bumpy bumpy bumpy

    #5 Nov 18, 2012 at 20:18 UTC - 0 likes

    This is what I would do:

    Create Dialog Item (Image) that is a btn-techupgrade-terran-fullborecanisterammo.dds and next to this image in the user interface dialog have the number of bullets left with the maximum possible. Something like 5/200 and if you want to have magazines where you have to reload you can have 5/200 and when you reload it goes to 12/193.

    Last edited Nov 18, 2012 by admielke
    #6 Nov 19, 2012 at 12:08 UTC - 0 likes
    Quote from Spiritgod: Go

    Aright guys i have this awsem map that i made that you start off in a hospital that is totaly destroyed and then you walk outside and obtain a marine suit from a dead marine than you can run around shooting zombiues hop in a car and drive round but any ways.... i was wondering when you set the far clip which i did i was wondering if there is a way to like have fog right before it cuts it off cause far clip is very chopy but if i had fog it would make everything look much better also i was wondering how to make like a ammo bar that says ammo and mabye has a little icon but instead of the boss bar i have i would like a like little picture of a bullet like so and as i shoot it goes like a dark grey but is still there if you guys could help me with this id be gratefull. :D

    Ammo l l l l l l l l l l l l l l l l l l l l l l l l l l

    For the fog idea you could try adjusting the Depth of Field values for the player's camera. This can be used to create a blurring effect with distance (as long as the player has his graphics settings high enough.) You could also create units using the fog model and periodically move them in relation to the player's position... though that may only work if your game is single player.

    My Projects:
    Malum Ruina: SC2Mapster
    Eternal Exile: SC2Mapster
    Spine Crawler Madness: SC2Mapster
    Xeno Crisis: SC2Mapster

  • 6 posts

You must login to post a comment. Don't have an account? Register to get one!