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 строка 516
517 {
518
519
520
521 float prot = 1 - protection;
522
523 float transf;
524
526 {
528 }
529 else if( inject_type ==
InjectTypes.ITEM_TO_PLAYER )
530 {
532 }
533 else if( inject_type ==
InjectTypes.PLAYER_AIR_PLAYER )
534 {
536 }
537
538
539
540 float result = 1 * prot * transf * dose_size;
541
542
543 return result;
544 }
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().