Spoiler:
ACTOR GrenadePickup : CustomInventory
{
//$Category Ammo (Wolf3D)
//$Title Grenade
//$Color 6
Inventory.PickupMessage "Picked up a grenade."
Tag "Frag Grenade"
Inventory.MaxAmount 9
Inventory.Icon THRPB0
Inventory.UseSound "grenade/throw"
Inventory.PickupSound "grenade/pickup"
+INVENTORY.KEEPDEPLETED
Inventory.InterHubamount 9
States
{
Spawn:
THRP A -1
Stop
Use:
TNT1 A 0 A_FireCustomMissile("HandGrenade",0,0)
Stop
}
}
ACTOR HandGrenade
{
Radius 4
Height 3
Speed 40
Damage (1)
DamageType "Frag"
Projectile
-NOGRAVITY
-NOTELEPORT
+CANBOUNCEWATER
Obituary "%o failed to field %k's fragmenting fastball."
BounceType Doom
BounceFactor 0.2
WallBounceFactor 0.6
BounceSound "grenade/bounce"
states
{
Spawn:
THRW A 2 A_Countdown
THRW BCDEFGH 2
Loop
Death:
THRW B 35
TNT1 A 0 A_AlertMonsters
TNT1 A 0 A_SetScale(1.75,1.75)
TNT1 A 0 A_SetTranslucent(0.75,1)
TNT1 A 0 A_PlaySound("grenade/explode",0,1.0,0,0.1)
TNT1 A 1 A_SpawnItemEx("GeneralExplosion_Medium")
TNT1 A 1 Radius_Quake(10,10,0,16,0)
stop
}
}
Deactivating "AUTOAIM" for a custom inventory item?
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
-
- Posts: 13549
- Joined: Wed Jul 16, 2003 3:52 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Germany
Deactivating "AUTOAIM" for a custom inventory item?
To make things short, here is a granade that autoaims when being tossed. What do I need to change that the autoaiming gets deactivated for that actor?
Spoiler:
-
- Posts: 3060
- Joined: Thu May 03, 2012 1:18 pm
- Graphics Processor: nVidia with Vulkan support
- Location: Maryland, US
Re: Deactivating "AUTOAIM" for a custom inventory item?
What you need to do is get someone to finally work on this feature suggestion I've been waiting ~3 years for (see this post in particular; these grenades were literally what I was talking about).
-
- Posts: 13549
- Joined: Wed Jul 16, 2003 3:52 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Germany
Re: Deactivating "AUTOAIM" for a custom inventory item?
Yay, pushed it
-
- Posts: 3060
- Joined: Thu May 03, 2012 1:18 pm
- Graphics Processor: nVidia with Vulkan support
- Location: Maryland, US