Jump to content

  • Log In with Google      Sign In   
  • Create Account

eezstreet

Member Since 16 Nov 2009
Offline Last Active Aug 27 2014 12:12 PM

Posts I've Made

In Topic: Don't think I'm handling objects properly...

16 February 2014 - 12:17 AM

When you say I wouldn't have to implement wrappers, are you referring to changing the type of vec3_t to a struct? (not really feasible, it's used literally everywhere) I can probably handle it being passed by reference and treated as a struct as far as AS is concerned.


In Topic: Don't think I'm handling objects properly...

09 February 2014 - 07:07 PM

Hmm. Wrappers might work.


In Topic: Don't think I'm handling objects properly...

09 February 2014 - 10:07 AM

MSVC 2010 and latest angelscript.


In Topic: Don't think I'm handling objects properly...

08 February 2014 - 11:03 AM

vec3_t is just a typedef float[3].

 

playerState_t is defined here:

https://github.com/eezstreet/OpenJK/blob/jk2hd/code/qcommon/q_shared.h#L1911-2212

(__NO_JK2 preprocessor is disabled)


In Topic: Don't think I'm handling objects properly...

08 February 2014 - 09:47 AM

Works without a hitch. However, the other arguments being passed into CalcMuzzlePoint (vec3_t global variables) are null pointers. :<

 

 

Also, the accuracy_shots property seems to be connected to the wrong property (connected to stats[STAT_HEALTH] instead of persistant[PERS_ACCURACY_SHOTS])


PARTNERS