Page 1 of 1

CSmPlayer::CurWeapon

Posted: 29 Sep 2013, 11:55
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

Re: CSmPlayer::CurWeapon

Posted: 30 Sep 2013, 08:10
by magnetik
The who must not be named weapon :thumbsup:

Re: CSmPlayer::CurWeapon

Posted: 30 Sep 2013, 09:02
by steeffeen
so a wand? :lol:

Re: CSmPlayer::CurWeapon

Posted: 30 Sep 2013, 11:32
by phil13hebert
steeffeen wrote:so a wand? :lol:
Did you try it ? Is it working ? xD

Re: CSmPlayer::CurWeapon

Posted: 30 Sep 2013, 12:14
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.

Re: CSmPlayer::CurWeapon

Posted: 30 Sep 2013, 16:38
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.

Re: CSmPlayer::CurWeapon

Posted: 30 Sep 2013, 17:06
by steeffeen
it's a constant value representing the current weapon
you can't set it ^^

i don't think it's possible

Re: CSmPlayer::CurWeapon

Posted: 30 Sep 2013, 17:07
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...