how to make actor movement stop immediately after melee kill

General help and assistance forum.
Post Reply
Fire Man X
New User
Posts: 11
Joined: Fri Jun 08, 2012 4:57 pm
Location: Fire Palace

how to make actor movement stop immediately after melee kill

#1

Post by Fire Man X » Sat Feb 15, 2014 2:39 pm

Hello.

My question is there is a possibility to do 2 commands that they are changing by using just one button?

for example: i want to put autoaim 0 command in my alias and by pressing tab button i have autoaim 0 and when i press it again it goes back to autoaim 3000.

If there is a possibility... please reply.
Last edited by Fire Man X on Sat Feb 22, 2014 6:26 pm, edited 1 time in total.

User avatar
CloudFlash
Zandrone
Posts: 1074
Joined: Mon Jun 04, 2012 5:35 pm
Location: Wonderland (except not really)

RE: Alias with more commands used by just one button?

#2

Post by CloudFlash » Sat Feb 15, 2014 3:12 pm

bind key "toggle autoaim"
https://i.imgflip.com/i5tpe.jpg
*Hey, who wants to hear my solution to the modern world's problems? ^Me! %Me! @Me! #Me! *WELL TOO BAD @Did he just stab himself with this butcher knife? %Looks like it ^Hey, the pizza guy arrived! %Pizza! Yey

Tux
Forum Regular
Posts: 510
Joined: Mon Jun 04, 2012 1:18 pm
Location: satan's gaping anus
Contact:

RE: Alias with more commands used by just one button?

#3

Post by Tux » Sat Feb 15, 2014 3:48 pm

doublebind key "say HI"
Image
dear diary, tux today was a faggot again[/size]

bazzoka
Forum Regular
Posts: 147
Joined: Mon Jun 04, 2012 10:49 am
Location: Lithuania

RE: Alias with more commands used by just one button?

#4

Post by bazzoka » Sat Feb 15, 2014 4:00 pm

Just create new .wad or .pk3 file and make KEYCONF file.

Example...

Code: Select all

addkeysection "My add-on" myaddon_functions
addmenukey "Zoom" "Zoom1"

Alias Zoom1 "fov 30; rebind Zoom_out;"
Alias Zoom2 "fov 90; rebind Zoom;"
You can use alias from console too but rebind function won't work form there. Oh and between but that .wad file in skins folder.
Last edited by bazzoka on Sat Feb 15, 2014 4:01 pm, edited 1 time in total.
You can say good bye to your thread. Cause i am killing it.

Wirtualnosc
Forum Regular
Posts: 143
Joined: Mon Jun 04, 2012 2:01 pm

RE: Alias with more commands used by just one button?

#5

Post by Wirtualnosc » Sat Feb 15, 2014 6:19 pm

Rebind does work from console if you bind an alias to it.
Last edited by Wirtualnosc on Sat Feb 15, 2014 6:19 pm, edited 1 time in total.
[20:19] <+IdeIdoom> join #VGL
[20:19] <+IdeIdoom> oh fuck
[20:19] <+IdeIdoom> I FORGOT the /
[20:19] <+IdeIdoom> biggest fail

Konar6
Retired Staff / Community Team Member
Posts: 455
Joined: Sun May 27, 2012 9:38 am

RE: Alias with more commands used by just one button?

#6

Post by Konar6 » Sat Feb 15, 2014 6:41 pm

Code: Select all

bind 3 "slot 3; autoaim 5000"
bind 5 "slot 5; autoaim 0"
...etc.

A neat way to enable autoaim for some weapons (SSG) and disable it for RL.
Ijon Tichy wrote:I like how your first responses to concerns being raised was to start insulting people, accusing random people on the Internet of being Shadowfox, and digging up irrelevant shit from the past. It really inspires confidence in me that you guys are level-headed and rational folks.


<BlueCool> you guys IQ is the same as my IP, Dynamic

Qent
Retired Staff / Community Team Member
Posts: 1424
Joined: Tue May 29, 2012 7:56 pm
Contact:

RE: Alias with more commands used by just one button?

#7

Post by Qent » Sat Feb 15, 2014 6:58 pm

Code: Select all

alias autoaimon "autoaim 5000; autoaim; rebind autoaimoff"
alias autoaimoff "autoaim 0; autoaim; rebind autoaimon"
bind tab autoaimon

User avatar
Ænima
Addicted to Zandronum
Posts: 3579
Joined: Tue Jun 05, 2012 6:12 pm

RE: Alias with more commands used by just one button?

#8

Post by Ænima » Sun Feb 16, 2014 6:01 pm

Konar6 wrote:

Code: Select all

bind 3 "slot 3; autoaim 5000"
bind 5 "slot 5; autoaim 0"
...etc.

A neat way to enable autoaim for some weapons (SSG) and disable it for RL.
Holy shit thank you so much, I was using a seperate bind/rebind key for that before.


Now i just gotta somehow make that work with the scroll wheel ...
Last edited by Ænima on Sun Feb 16, 2014 6:03 pm, edited 1 time in total.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

Ijon Tichy
Frequent Poster Miles card holder
Posts: 901
Joined: Mon Jun 04, 2012 5:07 am

RE: Alias with more commands used by just one button?

#9

Post by Ijon Tichy » Sun Feb 16, 2014 6:30 pm

Without automatically updating cvars like $weapon, $weaponslot, and whatnot (like what EZQuake does), I doubt it'd be doable.

User avatar
Leonard
Developer
Posts: 166
Joined: Sat Mar 30, 2013 8:09 pm

RE: Alias with more commands used by just one button?

#10

Post by Leonard » Sun Feb 16, 2014 10:25 pm

You can do it using a custom build although I don't know if that could be considered cheating ?
Last edited by Leonard on Sun Feb 16, 2014 10:25 pm, edited 1 time in total.
[spoiler]

Code: Select all

<@WaTaKiD> punish me
* Seanphone gets his belt out
<+Seanphone> all right WaTaKiD bend over

Code: Select all

<Kokiri> capo whos your fav pony?
<capo> i like them all

Code: Select all

cobalt changes topic to 'ZDoom 2.6.1 progress: at r3771, 23 revisions left (98% complete)'
<edward-san> omg
<edward-san> almost finished!!!
<Sean> !!!!!!!!!!!!!!
<Sean> Plot twist: This is the status of Half-Life 3.
<Dusk> plot twist: the percentage count suddenly begins to decline instead
<Sean> Torr makes a forum post "We're going back to 2.5.0"
<Dusk> and we do so incrementally
[/spoiler]

User avatar
DevilHunter
Zandronum Tester
Posts: 635
Joined: Sun Jun 17, 2012 12:58 am
Location: Alaska, USA
Contact:

RE: Alias with more commands used by just one button?

#11

Post by DevilHunter » Mon Feb 17, 2014 2:51 am

Ænima wrote:
Konar6 wrote:

Code: Select all

bind 3 "slot 3; autoaim 5000"
bind 5 "slot 5; autoaim 0"
...etc.

A neat way to enable autoaim for some weapons (SSG) and disable it for RL.
Holy shit thank you so much, I was using a seperate bind/rebind key for that before.


Now i just gotta somehow make that work with the scroll wheel ...
Well.. If only zandronum would support the +vstr cvar or whateva the flip its called, would be possible. This being a Quake thing though.. Can't find that one page where I learned about it.

Fire Man X
New User
Posts: 11
Joined: Fri Jun 08, 2012 4:57 pm
Location: Fire Palace

how to make actor movement stop immediately after melee kill

#12

Post by Fire Man X » Sat Feb 22, 2014 6:25 pm

Thx guys about that alias but now i wanted to ask people who are good at making classes & all stuff related to it.

Is there a way to make actor movement stop immediately after melee kill?

like if i coded altfire which need 200 power (ammo) to use (this isn't important, its just used for example.) and player who plays swordsman class used that altfire and perfectly aimed his target he uses a insta kill slash that he is stop immediately for a few secs after that move.

User avatar
CloudFlash
Zandrone
Posts: 1074
Joined: Mon Jun 04, 2012 5:35 pm
Location: Wonderland (except not really)

RE: how to make actor movement stop immediately after melee kill

#13

Post by CloudFlash » Sat Feb 22, 2014 7:05 pm

The only way I can think of is:
1: When player dies from the melee weapon, give him an item.
2: In edited player class, when player is in Death state, make him check his inventory for item.
3: If dead player finds he has the item, make him 'shot' the killer with invisible missile that will give his killer another item.
4: In killer's class, make him check if he got the another item (you probably should do it in Fire state. Somewhere at the end of it , to be clear.)
5: When killer notices he has another item, call A_Stop. At this point, you might make him let out a war cry or something.
https://i.imgflip.com/i5tpe.jpg
*Hey, who wants to hear my solution to the modern world's problems? ^Me! %Me! @Me! #Me! *WELL TOO BAD @Did he just stab himself with this butcher knife? %Looks like it ^Hey, the pizza guy arrived! %Pizza! Yey

Post Reply