Calculates number of agents that can be transmitted (based on given dose_size)
- Аргументы
-
| agent_id | Id of agent (see eAgents enum) |
| protection | Protection size used for chance generation <0.0; 1.0> |
| dose_size | Number of agents to be transmitted |
| inject_type | Type of transmission |
- Возвращает
- Number of agents that will be transmitted based on the processing of attributes
См. определение в файле PluginTransmissionAgents.c строка 614
615 {
616
617
618
619 float prot = 1 - protection;
620
621 float transf;
622
624 {
626 }
627 else if( inject_type ==
InjectTypes.ITEM_TO_PLAYER )
628 {
630 }
631 else if( inject_type ==
InjectTypes.PLAYER_AIR_PLAYER )
632 {
634 }
635
636
637
638 float result = 1 * prot * transf * dose_size;
639
640
641 return result;
642 }
float GetAgentTransferabilityAirOut(int agent_id)
Returns transferabilitAiryOut attribute for given agent.
float GetAgentTransferabilityIn(int agent_id)
Returns transferabilityIn attribute for given agent.
float GetAgentTransferabilityOut(int agent_id)
Returns transferabilityOut attribute for given agent.
Перекрестные ссылки GetAgentTransferabilityAirOut(), GetAgentTransferabilityIn() и GetAgentTransferabilityOut().
Используется в InjectAgentsWithPlayerCount() и InjectAgentWithPlayerDose().