fte-team / fteqw

This is the official GitHub mirror for the FTEQW project.
https://www.fteqw.org/
179 stars 55 forks source link

Teambinds problems!! #98

Open Xylemon opened 1 year ago

Xylemon commented 1 year ago

https://sourceforge.net/p/fteqw/tickets/15/

@mushis wrote on 2015-08-27:

$took for example, never works. some problem-pics attached.

additionally, my CAPSLOCK and 2 keys ALWAYS report _lost

        -- binds:
        bind CAPSLOCK "_REPORT"
        bind 2 "_safe"

-- description: only the first line is relevant but ive included all reports anyway

    alias _report "if $health < 1 then _lost else _report2"
    alias _report2 "if rl isin $bestweapon then _report_rl else if lg isin $bestweapon then _report_lg else _report3"
    alias _report3 "if $armor > 0 then _report_armor else _report_noweapon"
    alias _report_armor "if $cells > 10 then .report_armor_cells else .report_armor"
    alias _report_lg "if ('health' isin '$need' and 'armor' isin '$need' and $cells < 10) then .report_lg_h0_a0_am0 else if ('health' isin '$need' and 'armor' isin '$need') then .report_lg_h0_a0_am1 else if ('health' isin '$need' and $cells < 10) then .report_lg_h0_a1_am0 else if ('armor' isin '$need' and $cells < 10) then .report_lg_h1_a0_am0 else if ('health' isin '$need') then .report_lg_h0_a1_am1 else if ('armor' isin '$need') then .report_lg_h1_a0_am1 else if ($cells < 10) then .report_lg_h1_a1_am0 else .report_lg_h1_a1_am1"
    alias _report_noimpulse "if $cells > 10 then .report_cells else .report"
    alias _report_rl "if lg isin $weapons then _report_rlg else _report_rl_2"
    alias _report_rl_2 "if ('health' isin '$need' and 'armor' isin '$need' and 'rockets' isin '$need') then .report_rl_h0_a0_am0 else if ('health' isin '$need' and 'armor' isin '$need') then .report_rl_h0_a0_am1 else if ('health' isin '$need' and 'rockets' isin '$need') then .report_rl_h0_a1_am0 else if ('armor' isin '$need' and 'rockets' isin '$need') then .report_rl_h1_a0_am0 else if ('health' isin '$need') then .report_rl_h0_a1_am1 else if ('armor' isin '$need') then .report_rl_h1_a0_am1 else if ('rockets' isin '$need') then .report_rl_h1_a1_am0 else .report_rl_h1_a1_am1"
    alias _report_rlg "if ('health' isin '$need' and 'armor' isin '$need' and 'rockets' isin '$need') then .report_rlg_h0_a0_am0 else if ('health' isin '$need' and 'armor' isin '$need') then .report_rlg_h0_a0_am1 else if ('health' isin '$need' and 'rockets' isin '$need') then .report_rlg_h0_a1_am0 else if ('armor' isin '$need' and 'rockets' isin '$need') then .report_rlg_h1_a0_am0 else if ('health' isin '$need') then .report_rlg_h0_a1_am1 else if ('armor' isin '$need') then .report_rlg_h1_a0_am1 else if ('rockets' isin '$need') then .report_rlg_h1_a1_am0 else .report_rlg_h1_a1_am1"
    alias _rl_dead ".rl_dead"
    alias _rl_enemy ".rl_enemy"

and the _safe:

alias _safe "if ($health < 1) then .lost else if ('rl' isin '$weapons' and 'lg' isin '$weapons' and 'rockets' isin '$need') then .safe_rlg_am0 else if ('rl' isin '$weapons' and 'lg' isin '$weapons') then .safe_rlg else if ('rl' isin '$weapons' and 'rockets' isin '$need') then .safe_rl_am0 else if ('lg' isin '$weapons' and $cells < 10) then .safe_lg_am0 else if ('rl' isin '$weapons') then .safe_rl else if ('lg' isin '$weapons') then .safe_lg else .safe"

2 Attachments

fte-20150827084809-0 fte-20150827085217-0

Xylemon commented 1 year ago

mushis wrote on 2015-08-27:

my config attached. we can test together in a server. me running ezcake with the exactly same teamplay config, and you using this config. so you can SEE the different messages that ezcake prints according to the situation - while fte is dumb :)

/me runs

fte_.cfg