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 строка 533
534 {
535
536
537
538 float prot = 1 - protection;
539
540 float transf;
541
543 {
545 }
546 else if( inject_type ==
InjectTypes.ITEM_TO_PLAYER )
547 {
549 }
550 else if( inject_type ==
InjectTypes.PLAYER_AIR_PLAYER )
551 {
553 }
554
555
556
557 float result = 1 * prot * transf * dose_size;
558
559
560 return result;
561 }
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().