Moderator: GZDoom Developers
chaoscentral
Posts: 677 Joined: Sun Feb 27, 2005 4:32 pm
Location: Revere, MA
Contact:
Post
by chaoscentral » Sun May 29, 2005 10:06 pm
wats the syntax of A_JumpIfInventory
*edit*
nvm... I figured it out.
I've finally figured out how to make an "upgraded weapon" I made a wad where you pick up one smg. then if you pick up another it gives you dual weild. plus it is all the same object. so the one object gives you bothe smgs or ammo depending on which items you have. If you want the code to this weapon. or the wad itself let me know il post it... (too lazy at the moment)
The Ultimate DooMer
Posts: 2109 Joined: Tue Jul 15, 2003 5:29 pm
Location: Industrial Zone
Post
by The Ultimate DooMer » Tue May 31, 2005 11:18 am
Yippee, custom inventory items work
Now...can I create an item that can only be used if a variable is above a certain figure?
TheDarkArchon
Posts: 7656 Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place
Post
by TheDarkArchon » Tue May 31, 2005 11:23 am
Feature Request:
X offsets and angle offsets in A_ThrowGrenade
Graf Zahl
Lead GZDoom+Raze Developer
Posts: 49056 Joined: Sat Jul 19, 2003 10:19 am
Location: Germany
Post
by Graf Zahl » Tue May 31, 2005 12:12 pm
TheDarkArchon wrote: Feature Request:
X offsets and angle offsets in A_ThrowGrenade
Should be no problem if it wouldn't necessitate a complete reorganizing of the parameters.
@TUD:
It's A_ThrowGrenade("type", spawnheight, xyspeed, zspeed, useammo)
Only the first parameter is required. Then it will behave like Hexen's flechette-grenade.
But only in the inofficial builds.
DoomRater
Posts: 8265 Joined: Wed Jul 28, 2004 8:21 am
Preferred Pronouns: He/Him
Location: WATR HQ
Contact:
Post
by DoomRater » Tue May 31, 2005 9:52 pm
chaoscentral wrote: quick question. how do i make a monster spawn other monsters? this is probaby the wrong place to ask...
That title of yours is cool, os that makes up for it.
A_SpawnItem is your friend. If I remember Graf saying so it's just been added and can handle monsters properly too.
Cptschrodinger
Posts: 380 Joined: Thu Oct 21, 2004 5:27 pm
Post
by Cptschrodinger » Tue May 31, 2005 10:02 pm
A_ThrowGrenade? Cool...
@ Doomrater: YOUR BACK! How was San jose?
DoomRater
Posts: 8265 Joined: Wed Jul 28, 2004 8:21 am
Preferred Pronouns: He/Him
Location: WATR HQ
Contact:
Post
by DoomRater » Tue May 31, 2005 10:13 pm
Sniper Joe, check your PMs.
ChaosCentral, awesome. I want. BADLY. Like, real badly.
Anakin S.
Posts: 1067 Joined: Fri Nov 28, 2003 9:39 pm
Location: A long time ago in a galaxy far, far away...
Post
by Anakin S. » Wed Jun 01, 2005 4:35 pm
Graf Zahl wrote: What doesn't work. The new weapon? The berserk part works ok for me.
I tried the exact same code in Grubber's latest build (6/1) and it crashed.
I tried using Pistol, NewFist, and even some undefined weapon and it still crashed no matter what. Would you happen to know what's wrong? Here's the code:
Code: Select all
ACTOR NewBerserk : Inventory 2023
{
+INTERHUBSTRIP
+AUTOACTIVATE
+ALWAYSPICKUP
Inventory.MaxAmount 100
Inventory.PickupSound "misc/p_pkup"
Inventory.PickupMessage "Berserk!"
States
{
Spawn:
PSTR A -1
Stop
Pickup:
TNT1 A 0 A_GiveInventory("Berserk")
TNT1 A 0 A_SelectWeapon("NewFist")
}
}
Spoiler:
Code: ACCESS_VIOLATION
Tried to read address 00000000
Flags: 00000000
Address: 00000000
Windows NT 5.1 Build 2600 Service Pack 2
GS=0000 FS=003b ES=0023 DS=0023
EAX=00ca5170 EBX=00180001 ECX=00ca5e90 EDX=0000004e
ESI=00000002 EDI=00ca5e90
EBP=00ca5e90 EIP=00000000 ESP=0012fb10 CS=001b SS=0023
EFlags=00210202
CF- PF- AF- ZF- SF- TF- IF+ DF- OF- NT- RF+ VM- AC- VI- VP-
FPU State:
ControlWord=027f StatusWord=4000 TagWord=ffff
ErrorOffset=0047a95a
ErrorSelector=02e9001b
DataOffset=005ffdac
DataSelector=ffff0023
Cr0NpxState=00000000
MM0=00910091006a006a
MM1=00e100e100b900b9
MM2=b2a5318c6727d800
MM3=b400000000000000
MM4=0000000000000000
MM5=0000000200ca5e90
MM6=00ca5e9000ca5170
MM7=000000230012fb10
Running threads:
00000248 at 00000000*
00000f78
00000f50
00000c74
00000cb0
00000460
00000edc
00000dd8
00000224
Loaded modules:
00400000 - 0067afff zdoom.exe
7c900000 - 7c9affff ntdll.dll
7c800000 - 7c8f3fff kernel32.dll
773d0000 - 774d1fff COMCTL32.dll
77c10000 - 77c67fff msvcrt.dll
77dd0000 - 77e6afff ADVAPI32.dll
77e70000 - 77f00fff RPCRT4.dll
77f10000 - 77f55fff GDI32.dll
77d40000 - 77dcffff USER32.dll
77f60000 - 77fd5fff SHLWAPI.dll
71ad0000 - 71ad8fff WSOCK32.dll
71ab0000 - 71ac6fff WS2_32.dll
71aa0000 - 71aa7fff WS2HELP.dll
76b40000 - 76b6cfff WINMM.dll
10000000 - 10095fff fmod.dll
77be0000 - 77bf4fff MSACM32.dll
774e0000 - 7761cfff ole32.dll
763b0000 - 763f8fff comdlg32.dll
7c9c0000 - 7d1d3fff SHELL32.dll
003a0000 - 003cffff asOEHook.dll
7c000000 - 7c053fff MSVCR70.dll
74720000 - 7476afff MSCTF.dll
5ad70000 - 5ada7fff UxTheme.dll
76f50000 - 76f57fff wtsapi32.dll
76360000 - 7636ffff WINSTA.dll
5b860000 - 5b8b3fff NETAPI32.dll
77fe0000 - 77ff0fff Secur32.dll
73f10000 - 73f6bfff dsound.dll
77c00000 - 77c07fff VERSION.dll
76c30000 - 76c5dfff WINTRUST.dll
77a80000 - 77b13fff CRYPT32.dll
77b20000 - 77b31fff MSASN1.dll
76c90000 - 76cb7fff IMAGEHLP.dll
72d20000 - 72d28fff wdmaud.drv
72d10000 - 72d17fff msacm32.drv
77bd0000 - 77bd6fff midimap.dll
73ee0000 - 73ee3fff KsUser.dll
76fd0000 - 7704efff CLBCATQ.DLL
77120000 - 771abfff OLEAUT32.dll
77050000 - 77114fff COMRes.dll
6ce10000 - 6ce47fff dinput8.dll
688f0000 - 688f8fff HID.DLL
77920000 - 77a12fff SETUPAPI.DLL
73760000 - 737a8fff ddraw.dll
73bc0000 - 73bc5fff DCIMAN32.dll
605d0000 - 605d8fff mslbui.dll
04770000 - 04782fff dadkeyb.dll
Bytes near EIP:
fffffff0: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
00000000: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
00000010: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
ZDoom version 2.0.96 (Santa's Little Helper?)
Command line:
zdoom -file default.wad
IWAD: doom2.wad
Current map: MAP01
viewx = -6291456
viewy = 57485590
viewz = 2927262
viewangle = 1073741824
Possible call trace:
00000000 BOOM
00498671 call [eax+0x8]
004af73b call 00498640
00452a4c call [eax+0x8c]
0045c94d call 004529f0
004607b8 call [esp+0x14]
0045e330 call 004606f0
0045c350
0045e67a call 0045e0d0
004629fb call 0045e630
00466990 call 004627c0
00468d41 call 004681b0
00421367 call [edx+0x10]
004215ad call 004212f0
00478e32 call 00421560
0042a2ec call 00478d40
0041bde2 call 00429fd0
00417d9c call 0041baf0
0040b0d3 call 0040b020
0040b0d3 call 0040b020
004a5851 call 0040b0c0
004a5953 call 0051a23a
004a28a0 call 00417df0
004a2bd5 call 004a2490
0051d71a call 004a2b60
0051d5ae call 0051afe0
0051d596
Stack Contents:
0012fb10: 00498671 00000000 01bae788 00180000 q·I·············
0012fb20: 004af73b 00180000 00000000 01bae788 ;·J·············
0012fb30: 00080000 00452a4c 00ca5e90 01bae788 ····L*E··^······
0012fb40: 0045c94d 00000000 01accd40 01bae788 M·E·····@·······
0012fb50: 0060865c 004607b8 00ca5e90 0000000e \·`···F··^······
0012fb60: 00000000 00000009 0045e330 0045c350 ········0·E·P·E·
0012fb70: 0060865c 00000000 00ca5e90 ffa00000 \·`······^······
0012fb80: ffa00000 036906e1 00380000 00000009 ······i···8·····
0012fb90: 00000009 0000000e 0000000e 0045e67a ············z·E·
0012fba0: 00000000 00000001 00ca5e90 ffa00000 ·········^······
0012fbb0: 036906e1 00080000 ffa00000 01af8f38 ··i·········8···
0012fbc0: 0012fbfc 0016a380 0016a2a0 00175c40 ············@\··
0012fbd0: 00000000 00000000 004629fb 036906e1 ·········)F···i·
0012fbe0: 00000001 00ca5e00 fffbddcb 00ca5e90 ·····^·······^··
0012fbf0: 0000b505 00000000 00000000 00000000 ················
0012fc00: 00175098 fffbddcb 00000001 00000001 ·P··············
0012fc10: 005ffd58 00ca5e00 00000800 fffbddcb X·_··^··········
0012fc20: 00000000 ffa00000 036d2916 00000001 ·········)m·····
0012fc30: 00466990 00000000 00000000 00000001 ·iF·············
0012fc40: 00ca5e90 00000000 00000000 00000000 ·^··············
0012fc50: 00000000 00000000 00000000 00468d41 ············A·F·
0012fc60: 00080000 00421367 005ff22c 00000008 ····g·B·,·_·····
0012fc70: 00000000 004215ad 00000008 00600c78 ······B·····x·`·
0012fc80: 00000001 00478e32 000000cd 00000001 ····2·G·········
0012fc90: 0042a2ec 00601290 00000018 99b0291a ··B···`······)··
0012fca0: 0041bde2 000000f8 0039a568 0012fcdc ··A·····h·9·····
0012fcb0: 00000001 00417d9c 000000f8 0039a568 ·····}A·····h·9·
0012fcc0: 00000001 00000001 000000cc 0012fcb8 ················
0012fcd0: 0012fe04 0052ba45 00000000 00000004 ····E·R·········
0012fce0: 0000026e 0012fe6c 0000017e 83a9203a n···l···~···: ··
0012fcf0: 00bf7998 43eabb52 cbec9f6e 6d6f6f44 ·y··R··Cn···Doom
0012fd00: 7475412e 616f6c6f 7d000064 5e1345b4 .Autoload··}·E·^
0012fd10: 843b400a 88af838a 1a51d298 0be4c827 ·@;·······Q·'···
0012fd20: 1238e9ea 037caa36 b4e3f7e0 fb06326f ··8·6·|·····o2··
0012fd30: 659615ea ab847dd0 94d6fe4e 46267839 ···e·}··N···9x&F
0012fd40: 2f374623 8d6b1100 ee141b86 00000002 #F7/··k·········
0012fd50: 0860f615 0040b0d3 0012fd64 00000002 ··`···@·d·······
0012fd60: 0860f615 0040b0d3 0012fd74 004a5851 ··`···@·t···QXJ·
0012fd70: 0055bc28 004a5953 00000094 00000005 (·U·SYJ·········
0012fd80: 00000001 00000a28 00000002 76726553 ····(·······Serv
0012fd90: 20656369 6b636150 77003220 774ff399 ice Pack 2·w··Ow
0012fda0: 0015aef8 8007000e 776068e4 774ec2b4 ·········h`w··Nw
0012fdb0: 00000000 0012fdd8 7751c334 0015aef8 ········4·Qw····
0012fdc0: 7c80977b 0012fe00 00000000 7760683c {··|········<h`w
0012fdd0: 0012fdf8 774fee13 00000001 00000000 ······Ow········
0012fde0: 00000002 00000000 0000026e 00000000 ········n·······
0012fdf0: 0000017e 00000002 0012fe08 0060f615 ~·············`·
0012fe00: 0860f615 0012fe60 0052ba5a ffffffff ··`·`···Z·R·····
0012fe10: 004a28a0 ffffffff 7c80e00d 7ffdf000 ·(J········|···
0012fe20: 00000000 00000000 0000026e 0000017e ········n···~···
0012fe30: 00000001 000f4240 0012fe2c 00000020 ····@B··,··· ···
0012fe40: 00000276 00000000 00400000 00400238 v·········@·8·@·
0012fe50: 00400210 7c800000 00400000 0012fe14 ··@····|··@·····
0012fe60: 0012fe88 0052d070 00000000 0012fe98 ····p·R·········
0012fe70: 004a2bd5 7c80b529 00000000 7ffdf000 ·+J·)··|·······
0012fe80: 0012fe74 0012f734 0012ffb0 0051d358 t···4·······X·Q·
0012fe90: 0055b278 00000000 0012ffc0 0051d71a x·U···········Q·
0012fea0: 00400000 00000000 00152316 0000000a ··@······#······
0012feb0: 00000094 00000005 00000001 00000a28 ············(···
0012fec0: 00000002 76726553 20656369 6b636150 ····Service Pack
0012fed0: eb003220 e20b1000 e20b2000 e20b3000 2······· ···0··
0012fee0: e20b4000 e20b5000 e20b6000 e20b7000 ·@···P···`···p··
0012fef0: e20b8000 e20b9000 e20ba000 e20bb000 ················
0012ff00: e20bc000 e20bd000 e20be000 e20bf000 ················
0012ff10: 82240020 00000101 0000de59 00000001 ·$·····Y·······
0012ff20: 0000000f 00000000 01000098 000010b1 ················
0012ff30: 8055e880 eb827c48 80548fc1 82ff6000 ··U·H|····T··`··
0012ff40: 0051d5ae 00000012 00000000 7ffdf000 ··Q············
0012ff50: 00000044 00153568 00153518 001535c8 D···h5···5···5··
0012ff60: 00000000 00000001 00000064 00000064 ········d···d···
0012ff70: 00000000 00000000 00000000 00000000 ················
0012ff80: 00000001 00000000 ffffffff ffffffff ················
0012ff90: ffffffff 00000408 00000000 00000001 ················
0012ffa0: 00152316 00000000 0012feb0 805824fd ·#···········$X·
0012ffb0: 0012ffe0 0051d358 005a35e0 00000000 ····X·Q··5Z·····
0012ffc0: 0012fff0 7c816d4f 00000012 00000000 ····Om·|········
0012ffd0: 7ffdf000 8054a938 0012ffc8 82240020 ···8·T····· ·$·
0012ffe0: ffffffff 7c8399f3 7c816d58 00000000 ·······|Xm·|····
0012fff0: 00000000 00000000 0051d596 00000000 ··········Q·····
Last edited by
Anakin S. on Wed Jun 01, 2005 4:38 pm, edited 1 time in total.
TheDarkArchon
Posts: 7656 Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place
Post
by TheDarkArchon » Wed Jun 01, 2005 4:37 pm
Code: Select all
ACTOR NewBerserk : Inventory 2023
{
+INTERHUBSTRIP
+AUTOACTIVATE
+ALWAYSPICKUP
Inventory.MaxAmount 100
Inventory.PickupSound "misc/p_pkup"
Inventory.PickupMessage "Berserk!"
States
{
Spawn:
PSTR A -1
Stop
Pickup:
TNT1 A 0 A_GiveInventory("Berserk")
TNT1 A 0 A_SelectWeapon("NewFist")
Stop
}
}
Anakin S.
Posts: 1067 Joined: Fri Nov 28, 2003 9:39 pm
Location: A long time ago in a galaxy far, far away...
Post
by Anakin S. » Wed Jun 01, 2005 4:42 pm
Opps.
I knew I forgot something. Wonder why it worked when Graf tried it.
Last edited by
Anakin S. on Wed Jun 01, 2005 4:51 pm, edited 2 times in total.
Siggi
Posts: 3288 Joined: Sun Oct 03, 2004 8:57 am
Preferred Pronouns: They/Them
Location: South Africa
Post
by Siggi » Wed Jun 01, 2005 6:21 pm
He doesn't need luck, he's Graf Zahl
Anakin S.
Posts: 1067 Joined: Fri Nov 28, 2003 9:39 pm
Location: A long time ago in a galaxy far, far away...
Post
by Anakin S. » Thu Jun 02, 2005 5:16 pm
I tried making an armor bonus that gives 5 armor points when you pick it up. I only got 1% every time I picked it up (summon or give in the console), and no matter how many times I picked it up, it wouldn't go above 1% armor. Setting the Inventory.Amount to 10, 30, 50, even 100 didn't do the trick either. Am I doing something wrong?
Code: Select all
ACTOR ArmorBonus2 : ArmorBonus
{
XScale 1.1
YScale 1.1
Inventory.Amount 5
Inventory.MaxAmount 200
Inventory.PickupSound "misc/i_pkup"
Inventory.Icon BON2C0
Inventory.PickupMessage "Spiritual armor!"
}