MantisBT - Zandronum | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0002849 | Zandronum | [All Projects] Bug | public | 2016-10-02 20:36 | 2017-02-07 18:06 |
Reporter | fr-blood | ||||
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | Microsoft | OS | Windows | OS Version | XP/Vista/7 |
Product Version | 3.0-beta | ||||
Target Version | 3.0 | Fixed in Version | |||
Summary | 0002849: Something wrong with SetWeapon() online. | ||||
Description | Hellow, so in my project I've added a custom hotkey and when the player press it, a script will select a "handgrenade" weapon, launch the grenade then get try to get the old weapon that the player had before using the grenade. I managed to make it works, but here the problem is that the grenade is not spawned online, all the weapon animation will be here the ammo will be used but the grenade won't be launched. | ||||
Steps To Reproduce | |||||
Additional Information | Here is a video link when you can see the result online and then offline. 'https://www.youtube.com/watch?v=6_xzkfzrq4c&feature=youtu.be [^]' And some informations about the hotkey and the script. In MENUDEF: 'Control "Launch Grenade", "Puke -150 1"' In ACS: '{// Hot Keys Actions str OldWeapon0 = GetWeapon(); else if(Typ == 1 && CheckInventory("Busy") == 0 && ACS_NamedExecuteWithResult("Mech Check",0,0,0,0) == 0) {// Launch Grenade if(CheckInventory("FragGrenadeAmmo") > 0 && CheckInventory("SelectedFragGrenade") == 1 && SpecialWeapon() == FALSE) { GiveInventory("HandFragGrenade",1);SetWeapon("HandFragGrenade");GiveInventory("Busy",1); while(CheckInventory("Busy") == 1)delay(1);SetWeapon(OldWeapon0); } else if(CheckInventory("FlashBangAmmo") > 0 && CheckInventory("SelectedFlashBang") == 1 && SpecialWeapon() == FALSE) { GiveInventory("HandFlashBang",1);SetWeapon("HandFlashBang");GiveInventory("Busy",1); while(CheckInventory("Busy") == 1)delay(1);SetWeapon(OldWeapon0); } else if(CheckInventory("PlasmaGrenadeAmmo") > 0 && CheckInventory("SelectedPlasmaGrenade") == 1 && SpecialWeapon() == FALSE) { GiveInventory("HandPlasmaGrenade",1);SetWeapon("HandPlasmaGrenade");GiveInventory("Busy",1); while(CheckInventory("Busy") == 1)delay(1);SetWeapon(OldWeapon0); } else if(CheckInventory("FlyingGrenadeAmmo") > 0 && CheckInventory("SelectedFlyingGrenade") == 1 && SpecialWeapon() == FALSE) { GiveInventory("HandFlyingGrenade",1);SetWeapon("HandFlyingGrenade");GiveInventory("Busy",1); while(CheckInventory("Busy") == 1)delay(1);SetWeapon(OldWeapon0); } else if(CheckInventory("BouncingBettyAmmo") > 0 && CheckInventory("SelectedBettyMine") == 1 && SpecialWeapon() == FALSE) { GiveInventory("HandBouncingBetty",1);SetWeapon("HandBouncingBetty");GiveInventory("Busy",1); while(CheckInventory("Busy") == 1)delay(1);SetWeapon(OldWeapon0); } else if(CheckInventory("IncendiaryGrenadeAmmo") > 0 && CheckInventory("SelectedIncendiaryGrenade") == 1 && SpecialWeapon() == FALSE) { GiveInventory("HandIncendiaryGrenade",1);SetWeapon("HandIncendiaryGrenade");GiveInventory("Busy",1); while(CheckInventory("Busy") == 1)delay(1);SetWeapon(OldWeapon0); } else if(CheckInventory("TimedGrenadeAmmo") > 0 && CheckInventory("SelectedTimedGrenade") == 1 && SpecialWeapon() == FALSE) { GiveInventory("HandTimedGrenade",1);SetWeapon("HandTimedGrenade");GiveInventory("Busy",1); while(CheckInventory("Busy") == 1)delay(1);SetWeapon(OldWeapon0); } } }' | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() /tracker/file_download.php?file_id=1900&type=bug ![]() /tracker/file_download.php?file_id=2022&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2016-10-02 20:36 | fr-blood | New Issue | |||
2016-10-02 20:40 | Edward-san | Note Added: 0015737 | |||
2016-10-02 20:40 | Edward-san | Status | new => feedback | ||
2016-10-03 04:10 | fr-blood | Note Added: 0015739 | |||
2016-10-03 04:10 | fr-blood | Status | feedback => new | ||
2016-10-03 14:06 | Torr Samaho | Note Added: 0015744 | |||
2016-10-04 09:44 | fr-blood | File Added: setweapontest.wad | |||
2016-10-04 09:48 | fr-blood | Note Added: 0015752 | |||
2016-10-04 18:22 | Torr Samaho | Note Added: 0015757 | |||
2016-11-29 20:39 | Torr Samaho | Status | new => feedback | ||
2016-12-24 22:41 | Dusk | Target Version | => 3.0 | ||
2017-02-01 22:17 | fr-blood | Note Added: 0016747 | |||
2017-02-01 22:17 | fr-blood | Status | feedback => new | ||
2017-02-05 14:15 | Torr Samaho | Note Added: 0016753 | |||
2017-02-05 14:16 | Torr Samaho | Status | new => feedback | ||
2017-02-06 17:58 | fr-blood | Note Added: 0016782 | |||
2017-02-06 17:58 | fr-blood | Status | feedback => new | ||
2017-02-06 17:59 | fr-blood | File Added: hotkeyinventorytest.pk3 | |||
2017-02-07 12:57 | fr-blood | Note Added: 0016812 | |||
2017-02-07 18:06 | Dusk | Status | new => closed | ||
2017-02-07 18:06 | Dusk | Resolution | open => no change required |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|