I have it set now so it fetches the active weapon and sets it not to draw the model, and then removes it from the player. Thank you for the help!
On Sat, Jan 22, 2011 at 10:18 AM, Tony "omega" Sergi <omegal...@gmail.com>wrote: > player_weaponstrip just uses RemoveAllItems. but it still does't set the > boolean to false. > you have to actually do "ShowViewModel( false );" in order to set the > boolean. > I don't have unmodified code here, but I don't believe it is ever actually > used in unmodified code, it just exists. > -Tony > > > > > On Sat, Jan 22, 2011 at 7:05 PM, Tom Edwards <t_edwa...@btinternet.com>wrote: > >> Look at what player_weaponstrip does. >> >> >> On 22/01/2011 1:19, Bryan Abrams wrote: >> >>> Whether or not a player can have weapons is based upon a boolean value in >>> SDK_Player. However, after using the function RemoveAllWeapons(), the player >>> no longer has the weapon but the view model still draws. I've traced it to >>> viewrender DrawViewModels and the bool value drawViewmodel is staying true >>> even after everything being removed. When I look for places where this >>> function is referenced however, it's only found inside viewrender class so >>> I'm having trouble tracing it's origins further. Can anybody give me a hint >>> as to where to look or why this is happening? Thank you. >>> >>> - Bryan >>> >>> >>> _______________________________________________ >>> To unsubscribe, edit your list preferences, or view the list archives, >>> please visit: >>> http://list.valvesoftware.com/mailman/listinfo/hlcoders >>> >>> >> _______________________________________________ >> To unsubscribe, edit your list preferences, or view the list archives, >> please visit: >> http://list.valvesoftware.com/mailman/listinfo/hlcoders >> >> > > > -- > -Tony > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > >
_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders