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?
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Re: CSmPlayer::CurWeapon
Posted: 30 Sep 2013, 08:10
by magnetik
The who must not be named weapon
![Thumbs Up :thumbsup:](./images/smilies/icon_thumbsup.gif)
Re: CSmPlayer::CurWeapon
Posted: 30 Sep 2013, 09:02
by steeffeen
so a wand?
![Laughing :lol:](./images/smilies/icon_lol.gif)
Re: CSmPlayer::CurWeapon
Posted: 30 Sep 2013, 11:32
by phil13hebert
steeffeen wrote:so a wand?
![Laughing :lol:](./images/smilies/icon_lol.gif)
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
@steeffeen Is it still usable with maniascript to get it in a gamemode (cause I'm sure that you already tested it
![Razz :P](./images/smilies/icon_razz.gif)
) ?
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...
Just my 2 cents...