Author Topic: SEXP request: Get-primary-weapon & Secondary  (Read 4429 times)

0 Members and 1 Guest are viewing this topic.

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: SEXP request: Get-primary-weapon & Secondary
Reminder for Kara  :p
(If its already in and I missed it, feel free to whip me)
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: SEXP request: Get-primary-weapon & Secondary
Good timing. I was just about to choose my coding project for today. :D

EDIT : Try this out.

I renamed the SEXP to Has-x-weapon instead since that made a little more sense to me. If you remember the discussion on the previous page, I implemented the 4th version of the SEXP since I felt that would be the one that was most useful when combined with when-argument SEXPs.

« Last Edit: September 11, 2010, 03:11:26 am by karajorma »
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: SEXP request: Get-primary-weapon & Secondary
Sweet
Will give this a try asap  :nod:
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: SEXP request: Get-primary-weapon & Secondary
Great. Let me know it it works so I can submit it to SVN.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: SEXP request: Get-primary-weapon & Secondary
Tested it, seems to work fine :D

One minor nitpick though. If you assign a gunbank but then change the weapon type, it switches back to <all weapon banks>
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

  

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: SEXP request: Get-primary-weapon & Secondary
Hmmmm. I suspect I know the cause for that but it might take me a while to figure out how to fix it.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]