[Suggestions] CSmPlayer attributes

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

[Suggestions] CSmPlayer attributes

Post by steeffeen »

hey there,

there are a few things about the CSmPlayer class which are driving me crazy.

ArmorGain
currently this attribute has only an effect if the current armor of a player isn't a multiple of 100 (like 100, 200, 300, ..)
that means if a player has only 100 out of 200 armor the armor gain doesn't do anything, you have to set the armor to 101 with the script to enable the armor gain... i think that's kind of weird
// Edit: the default value is currently 25, but i would rather suggest a default value of 0

StaminaMax, StaminaPower, StaminaGain
the default value of these attributes is 1.0, while this value is also the max value.. i understand that setting a gain value of 100.0 would make it possible to use stamina the whole time which would make it kind of pointless.. but in my opinion this should be open to the script author..
i would like to request opening up the value range of these 3 attributes :)

ForceColor
this request isn't so important but it would be still nice if it would be possible to force a different color in a team context, as it's only possible without teams right now

ShootingFrequency
just a small idea of mine, it would open up more possibilities if you set the ratio with which players are able to shoot
in case it's difficult to understand, if you have 4 rockets and keep shooting all of them. the 4 rockets won't be shot instantly all together but one after another with a small delay. and i would like to modify this delay :)
it has the same function as AmmoGain if you have only 1 ammunition, but you would have to be more cautious while shooting if you can't just spam all of your rockets

thanks
steff

P.s. feedback would be appreciated
Last edited by steeffeen on 15 Mar 2013, 11:47, edited 2 times in total.
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2463
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: [Suggestions] CSmPlayer attributes

    Post by steeffeen »

    steeffeen wrote:ArmorGain
    currently this attribute has only an effect if the current armor of a player isn't a multiple of 100 (like 100, 200, 300, ..)
    that means if a player has only 100 out of 200 armor the armor gain doesn't do anything, you have to set the armor to 101 with the script to enable the armor gain... i think that's kind of weird
    // Edit: the default value is currently 25, but i would rather suggest a default value of 0
    okay i figured out that the effect of ArmorGain isn't what i expected, in fact a constant reload of armor is achieved through the attribute ArmorReplenishGain which works fine for me :thumbsup:

    but now i'm puzzled with the attribute ArmorGain, what's the point of it?
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      User avatar
      steeffeen
      Translator
      Translator
      Posts: 2463
      Joined: 14 Oct 2012, 16:22
      Location: Germany

      Re: [Suggestions] CSmPlayer attributes

      Post by steeffeen »

      during my script work today i missed the possibility of checking the current ammunition of a player
      it would be great if there would be an attribute like

      Code: Select all

      Const Real CSmPlayer::CurrentAmmo
        Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

        ManiaControl, FancyManiaLinks
        User avatar
        racer_simon
        Posts: 52
        Joined: 02 Jul 2011, 11:40

        Re: [Suggestions] CSmPlayer attributes

        Post by racer_simon »

        steeffeen wrote: ForceColor
        this request isn't so important but it would be still nice if it would be possible to force a different color in a team context, as it's only possible without teams right now
        I need this, too.
        Come on, Nadeo! :)
        User avatar
        steeffeen
        Translator
        Translator
        Posts: 2463
        Joined: 14 Oct 2012, 16:22
        Location: Germany

        Re: [Suggestions] CSmPlayer attributes

        Post by steeffeen »

        How about opening up the value ranges only for title packs? then the players still know what do expect from SMStorm but content creators have more possibilities inside their title packs :)
          Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

          ManiaControl, FancyManiaLinks
          User avatar
          Gugli
          Nadeo
          Nadeo
          Posts: 536
          Joined: 14 Jun 2010, 17:35
          Location: Mon PC est à Paris, mais mon coeur rode dans les forêts de Lozère

          Re: [Suggestions] CSmPlayer attributes

          Post by Gugli »

          steeffeen wrote:How about opening up the value ranges only for title packs? then the players still know what do expect from SMStorm but content creators have more possibilities inside their title packs :)
          That's exactly the spirit ;)
          Keeping "vanilla" and "non-vanilla" modes well separated to avoid confusion ^_^.

          Don't know when we will have time for that, though.
          --
          (>~_~)> ═╦═ ╔╦╗ <(~_~<)
          User avatar
          steeffeen
          Translator
          Translator
          Posts: 2463
          Joined: 14 Oct 2012, 16:22
          Location: Germany

          Re: [Suggestions] CSmPlayer attributes

          Post by steeffeen »

          another thing i would like to see: increase of the range of SpeedPower ;)
            Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

            ManiaControl, FancyManiaLinks
            User avatar
            kadaz
            Posts: 383
            Joined: 10 Sep 2011, 23:34
            Location: British Columbia
            Contact:

            Re: [Suggestions] CSmPlayer attributes

            Post by kadaz »

            steeffeen wrote:during my script work today i missed the possibility of checking the current ammunition of a player
            it would be great if there would be an attribute like

            Code: Select all

            Const Real CSmPlayer::CurrentAmmo
            was looking for this today..
            US: Meltdown Combat Server: maniaplanet://#join=smrock@SMStorm 十 Offline
            EU: Meltdown Combat Server: maniaplanet://#join=smpage@SMStorm 十 Offline
            US: SMTRAK Startup Server: maniaplanet://#join=tmrock@SMStadium 十 Online
            Post Reply

            Return to “ManiaScript”

            Who is online

            Users browsing this forum: No registered users and 1 guest