Upvote Upvoted 15 Downvote Downvoted
The ultimate scripting framework!
1
#1
0 Frags +

Hello!
I've written a framework (WIP) that aims to facilitate creation and sharing for scripts between players.
Here it is!
I would like to hear your ideas and opinions!
Also, please help to spread the word! We wont see any benefit from this scritif none will use it!

Hello!
I've written a framework (WIP) that aims to facilitate creation and sharing for scripts between players.
[url=https://gitlab.com/vharabar/TF2_ulitmate_script_framework]Here it is![/url]
I would like to hear your ideas and opinions!
Also, please help to spread the word! We wont see any benefit from this scritif none will use it!
2
#2
0 Frags +

Seems great! I noticed a small typo in Users/4 "Default binings". Thanks for sharing!

Seems great! I noticed a small typo in Users/4 "Default binings". Thanks for sharing!
3
#3
2 Frags +

If I might make a suggestion, since you override a lot of default binds with your +se aliases, you should implement invnext/invprev/lastinv logic that most if not all weapon-specific configs use, as part of your framework. I have different prefixes, but the logic is the important part:

    bind 1             eq_slot1
    bind 2             eq_slot2
    bind 3             eq_slot3
    bind mwheelup      eq_invprev
    bind mwheeldown    eq_invnext
    bind q             eq_lastinv

    alias set_slot1   "r_drawviewmodel 1"
    alias set_slot2   "r_drawviewmodel 1"
    alias set_slot3   "r_drawviewmodel 0"

    alias eq_slot1    "slot1; set_slot1; alias eq_invnext eq_slot2; alias eq_invprev eq_slot3; qs_slot1; alias set_lastinv alias eq_lastinv eq_slot1; alias qs_slot1 ;            alias qs_slot2 set_lastinv; alias qs_slot3 set_lastinv"
    alias eq_slot2    "slot2; set_slot2; alias eq_invnext eq_slot3; alias eq_invprev eq_slot1; qs_slot2; alias set_lastinv alias eq_lastinv eq_slot2; alias qs_slot1 set_lastinv; alias qs_slot2 ;            alias qs_slot3 set_lastinv"
    alias eq_slot3    "slot3; set_slot3; alias eq_invnext eq_slot1; alias eq_invprev eq_slot2; qs_slot3; alias set_lastinv alias eq_lastinv eq_slot3; alias qs_slot1 set_lastinv; alias qs_slot2 set_lastinv; alias qs_slot3 "

    eq_slot1
    alias eq_lastinv   eq_slot2

You'd merely need the set_slot aliases defaulted to blank (so changing doesn't change options).

Would save a ton of work having to write the rotational logic anytime you wanted to share a crosshair-changer or viewmodel hiding script. Would allow you to even write one by only overriding the set_slot aliases, as well.

If I might make a suggestion, since you override a lot of default binds with your +se aliases, you should implement invnext/invprev/lastinv logic that most if not all weapon-specific configs use, as part of your framework. I have different prefixes, but the logic is the important part:

[code] bind 1 eq_slot1
bind 2 eq_slot2
bind 3 eq_slot3
bind mwheelup eq_invprev
bind mwheeldown eq_invnext
bind q eq_lastinv


alias set_slot1 "r_drawviewmodel 1"
alias set_slot2 "r_drawviewmodel 1"
alias set_slot3 "r_drawviewmodel 0"


alias eq_slot1 "slot1; set_slot1; alias eq_invnext eq_slot2; alias eq_invprev eq_slot3; qs_slot1; alias set_lastinv alias eq_lastinv eq_slot1; alias qs_slot1 ; alias qs_slot2 set_lastinv; alias qs_slot3 set_lastinv"
alias eq_slot2 "slot2; set_slot2; alias eq_invnext eq_slot3; alias eq_invprev eq_slot1; qs_slot2; alias set_lastinv alias eq_lastinv eq_slot2; alias qs_slot1 set_lastinv; alias qs_slot2 ; alias qs_slot3 set_lastinv"
alias eq_slot3 "slot3; set_slot3; alias eq_invnext eq_slot1; alias eq_invprev eq_slot2; qs_slot3; alias set_lastinv alias eq_lastinv eq_slot3; alias qs_slot1 set_lastinv; alias qs_slot2 set_lastinv; alias qs_slot3 "

eq_slot1
alias eq_lastinv eq_slot2[/code]

You'd merely need the set_slot aliases defaulted to blank (so changing doesn't change options).

Would save a ton of work having to write the rotational logic anytime you wanted to share a crosshair-changer or viewmodel hiding script. Would allow you to even write one by only overriding the set_slot aliases, as well.
4
#4
0 Frags +
KairuIf I might make a suggestion, since you override a lot of default binds with your +se aliases, you should implement invnext/invprev/lastinv logic that most if not all weapon-specific configs use, as part of your framework.
...
Would save a ton of work having to write the rotational logic anytime you wanted to share a crosshair-changer or viewmodel hiding script. Would allow you to even write one by only overriding the set_slot aliases, as well.

lastinv is already implemented, i just used wrong name. Crosshair changing is already possible since no matter how you change weapons same aliases are called (+se and sa). Nevertheless, thanks for nextinv, previnv idea! I will implement those tomorrow.

[quote=Kairu]If I might make a suggestion, since you override a lot of default binds with your +se aliases, you should implement invnext/invprev/lastinv logic that most if not all weapon-specific configs use, as part of your framework.
...
Would save a ton of work having to write the rotational logic anytime you wanted to share a crosshair-changer or viewmodel hiding script. Would allow you to even write one by only overriding the set_slot aliases, as well.[/quote]

lastinv is already implemented, i just used wrong name. Crosshair changing is already possible since no matter how you change weapons same aliases are called (+se and sa). Nevertheless, thanks for nextinv, previnv idea! I will implement those tomorrow.
5
#5
whitelist.tf
2 Frags +

Line #315 you have fv_invslot5 instead of 6

You could provide a bunch more aliases for voice commands and possible taunt aliases (taunt_by_name "tauntname;" (mind the semi-colon after the name before the closing quote!))

I might have not been able to read properly, but is there a 'modifier' section, where for instance you hold down shift/ctrl/alt to trigger a +alias which rebinds/realiases a bunch of keys so you can have multiple actions bound to the same key by simply holding down a button (e = medic | E = help!)

Line #315 you have [i]fv_invslot5[/i] instead of [b]6[/b]

You could provide a bunch more aliases for voice commands and possible taunt aliases ([i]taunt_by_name "tauntname;"[/i] (mind the semi-colon after the name before the closing quote!))

I might have not been able to read properly, but is there a 'modifier' section, where for instance you hold down shift/ctrl/alt to trigger a +alias which rebinds/realiases a bunch of keys so you can have multiple actions bound to the same key by simply holding down a button (e = medic | E = help!)
6
#6
0 Frags +
WiethoofdLine #315 you have fv_invslot5 instead of 6

You could provide a bunch more aliases for voice commands and possible taunt aliases (taunt_by_name "tauntname;" (mind the semi-colon after the name before the closing quote!))

I might have not been able to read properly, but is there a 'modifier' section, where for instance you hold down shift/ctrl/alt to trigger a +alias which rebinds/realiases a bunch of keys so you can have multiple actions bound to the same key by simply holding down a button (e = medic | E = help!)

Thanks for modifiers suggestion! I will add it tomorrow.

[quote=Wiethoofd]Line #315 you have [i]fv_invslot5[/i] instead of [b]6[/b]

You could provide a bunch more aliases for voice commands and possible taunt aliases ([i]taunt_by_name "tauntname;"[/i] (mind the semi-colon after the name before the closing quote!))

I might have not been able to read properly, but is there a 'modifier' section, where for instance you hold down shift/ctrl/alt to trigger a +alias which rebinds/realiases a bunch of keys so you can have multiple actions bound to the same key by simply holding down a button (e = medic | E = help!)[/quote]
Thanks for modifiers suggestion! I will add it tomorrow.
7
#7
whitelist.tf
2 Frags +

Happy to help improvement this framework.

With the sticky keys at the bottom, also add -duck, possibly -use_action_slot_item and other minus aliases that can get stuck.

Happy to help improvement this framework.

With the sticky keys at the bottom, also add [i]-duck[/i], possibly [i]-use_action_slot_item[/i] and other minus aliases that can get stuck.
Please sign in through STEAM to post a comment.