CSmPlayer::CurWeapon

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

CSmPlayer::CurWeapon

Post by steeffeen »

it's a great thing that this property has been added, thanks :)

but i've just noticed that the values are kind of weird

1: Laser
2: Rocket
3: Nucleus
5: Arrow

what's up with the 4? :D
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    User avatar
    magnetik
    Posts: 1673
    Joined: 01 Feb 2012, 19:13
    Location: Bordeaux
    Contact:

    Re: CSmPlayer::CurWeapon

    Post by magnetik »

    The who must not be named weapon :thumbsup:
    ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2463
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: CSmPlayer::CurWeapon

    Post by steeffeen »

    so a wand? :lol:
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      User avatar
      phil13hebert
      Posts: 564
      Joined: 29 Oct 2011, 14:11
      Location: Québec

      Re: CSmPlayer::CurWeapon

      Post by phil13hebert »

      steeffeen wrote:so a wand? :lol:
      Did you try it ? Is it working ? xD
      OS: Windows 7 64 bit
      CPU: Intel Core i7 3770 @ 3.40Ghz
      RAM: 8GB DDR3 798MHz
      GPU: Nvidia GeForce GTX 660 1536MB
      Motherboard: Intel 0KM92T
      Sound: 7.1
      Peripherals: Logitech G510, SteelSeries sensei raw, Corsair vengeance 1500
      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: CSmPlayer::CurWeapon

      Post by Gugli »

      You're gonna be disapointed xD :

      Remember when you could stand still for 6s to get the bouncing rocket (B2 gameplay IIRC) ? Internally, this rocket is another weapon with ID number 4, and the game automagically switches ^_^.
      This special value can not be choosen by scripts as a default weapon.
      --
      (>~_~)> ═╦═ ╔╦╗ <(~_~<)
      User avatar
      phil13hebert
      Posts: 564
      Joined: 29 Oct 2011, 14:11
      Location: Québec

      Re: CSmPlayer::CurWeapon

      Post by phil13hebert »

      Haha great one :lol:
      @steeffeen Is it still usable with maniascript to get it in a gamemode (cause I'm sure that you already tested it :P) ?
      I'm just curious.
      OS: Windows 7 64 bit
      CPU: Intel Core i7 3770 @ 3.40Ghz
      RAM: 8GB DDR3 798MHz
      GPU: Nvidia GeForce GTX 660 1536MB
      Motherboard: Intel 0KM92T
      Sound: 7.1
      Peripherals: Logitech G510, SteelSeries sensei raw, Corsair vengeance 1500
      User avatar
      steeffeen
      Translator
      Translator
      Posts: 2463
      Joined: 14 Oct 2012, 16:22
      Location: Germany

      Re: CSmPlayer::CurWeapon

      Post by steeffeen »

      it's a constant value representing the current weapon
      you can't set it ^^

      i don't think it's possible
        Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

        ManiaControl, FancyManiaLinks
        User avatar
        w1lla
        Posts: 2287
        Joined: 15 Jun 2010, 11:09
        Location: Netherlands
        Contact:

        Re: CSmPlayer::CurWeapon

        Post by w1lla »

        What about making a map with only bouncing rockets... Somehow it should be possible to get that ID... :shock:

        Just my 2 cents...
        TM² Info
        SM Info
        QM Info

        OS: Windows 10 x64 Professional
        MB: MSI 970A-G46
        Processor: AMD FX-6300 3500 mHz
        RAM Memory: 16 GB DDR3
        Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
        KB: Logitech G510s
        Mouse: Logitech G300s
        Mode Creation
        ManiaScript Docs
        Post Reply

        Return to “ManiaScript”

        Who is online

        Users browsing this forum: No registered users and 0 guests