Talk:Weapon script

From Valve Developer Community
Jump to: navigation, search

Cycle Time

In, m_flCycleTime = pKeyValuesData->GetFloat( "CycleTime", 0.15 ); what's that cycletime? Is .15 15% of 1 second or what? Banaticus -- BAH 08:36, 17 June 2010 (UTC)

Seconds seem sensible doesn't it? 0.15 = 150ms --TomEdwards 19:14, 17 June 2010 (UTC)

Server/client weapon attributes sync

How can I control which attributes will be synchronized between server and client, and which ones won't?

In my tests, changes to MyModWeaponData were being replicated to clients, but if I changed something from FileWeaponInfo_t, let's say iSlot, it doesn't get replicated to clients.

Seta00 03:53, 11 September 2010 (UTC)

You'll need to network vars that aren't replicated yourself through the normal channels. It makes total sense that iSlot shouldn't be part of Valve's datatables. :-) --TomEdwards 10:49, 11 September 2010 (UTC)