[gameobject]rocket gravity.
Hello,
Can someone explain how to remove gravity of a gameobject in sources?
I try to make a rocket launcher and i don't know how to remove the gravity.:
hatlan2 - Hatlan Rocket test.
EDIT :
I need to found a better way to do AOE Damage if someone can tell me how to.
Re: [gameobject]rocket gravity.
You'll find what your looking for in Ammo.cpp and Ammo.h most likely as it would be the appropriate place to write gravity properties into the Ammo itself.
You'll find this in the WarZ solution
EclipseStudio - Game - GameObjects Code - Items/Weapons - Ammo.cpp & Ammo.h for other weapon types look in Bullet.cpp & Bullet.h
Re: [gameobject]rocket gravity.
How the fuck did you make the RPG work? LOL
make a tutorial bro xd
Re: [gameobject]rocket gravity.
dns u can pass me the RSUpdate already compiled???
Re: [gameobject]rocket gravity.
Bruno, stop asking in multiple places.
No I'm not compiling the RSUpdate, as my environment is no where near like what is on the site at the moment.
It would waste my time and do you no good bud.
You can bump your help request in 24 hours as per the forum rules. Until then please allow some time for those that may be able to come help, come to your aid.
Re: [gameobject]rocket gravity.
Quote:
Originally Posted by
DNC
You'll find what your looking for in Ammo.cpp and Ammo.h most likely as it would be the appropriate place to write gravity properties into the Ammo itself.
You'll find this in the WarZ solution
EclipseStudio - Game - GameObjects Code - Items/Weapons - Ammo.cpp & Ammo.h for other weapon types look in Bullet.cpp & Bullet.h
Thanks.
I'm making a new class for the rocket.
Re: [gameobject]rocket gravity.
Welcome, hope to see that video when its done ;)
Re: [gameobject]rocket gravity.
Quote:
Originally Posted by
DNC
Welcome, hope to see that video when its done ;)
Now i have to found a way to make AOE damage because even the grenade is not coded to make damage it seem , so i don't really know how to do that.
Re: [gameobject]rocket gravity.
It should also be written inside Ammo.cpp
As this is part of what the Ammo does on impact.
Hope the gravity issue is resolved now.
Take a look at Grenade.cpp and how they had coded up to this point.
Re: [gameobject]rocket gravity.
Quote:
Originally Posted by
DNC
It should also be written inside Ammo.cpp
As this is part of what the Ammo does on impact.
Hope the gravity issue is resolved now.
Take a look at Grenade.cpp and how they had coded up to this point.
Grenade don't do damage ingame.
Oh and for gravity instead of editing code i just make the rocket faster (No gravity rocket is not realistic after all).
Re: [gameobject]rocket gravity.
I'm fully aware it doesn't do damage in game :-)
I was saying I'd compare the Grenade for the rest of the Rocket Launcher Ammo.
As in, probably a good idea to create new Rockets.cpp and Rockets.h files based off of Grenade.cpp and Grenade.h
You'll have to add in the damage yourself. ;-)
Re: [gameobject]rocket gravity.
Quote:
Originally Posted by
ccleanerz
Grenade don't do damage ingame.
Oh and for gravity instead of editing code i just make the rocket faster (No gravity rocket is not realistic after all).
Like DNC says, Grenade.cpp...
But u need see to on ItemDB on Damage of Granade, for my local game works only on zombie, if i dont mistake, says:
I dont remeber now but i can put here, i know u need change Grenade.cpp, ItemDB and more 1 file, but head not remember as soon as you get home post code and related files.
Re: [gameobject]rocket gravity.
rocket onomnomnom :)
Folkz dont forget to post where must be modify the core for grenade dmg...
I think local player checkin is bad in cpp, but i do not trust in my brain yet:D
And thx :)
Re: [gameobject]rocket gravity.
What i done so far (sorry for loading screen):
hatlan2 - Hatlan Rocket VS Zombie !
I think i'm just going to give up about rocket launcher.
Re: [gameobject]rocket gravity.
Quote:
Originally Posted by
ccleanerz
WOW!!!!!!
I need RPG *-*
You can use the same code of your RPG Explosion and Damage to Grenade....
My Files Conf.
ItensDB
Quote:
<Weapon itemID="101310" category="27" upgrade="1" FNAME="EXP_M26" Weight="180">
<Model file="Data/ObjectsDepot/Weapons/EXP_M26.sco" AnimPrefix="EXP_M26" muzzlerOffset.x="0" muzzlerOffset.y="0" muzzlerOffset.z="0" />
<MuzzleModel file="" />
<HudIcon file="$Data/Weapons/HudIcons/EXP_M26.dds" />
<Store name="Frag Grenade" icon="$Data/Weapons/StoreIcons/EXP_M26.dds" desc="The fragmentation grenade is used to spray shrapnel upon exploding. Pull the pin and dont forget to throw it far.. Fire in the hole!" LevelRequired="0" />
<PrimaryFire bullet="grenade" damage="70" immediate="false" mass="10" decay="50" speed="20" area="20" delay="4" timeout="0" numShells="1" clipSize="1" reloadTime="1" activeReloadTick="0" rateOfFire="60" spread="1" recoil="1" numgrenades="0" grenadename="asr_grenade" firemode="100" ScopeType="default" ScopeZoom="0" />
<Animation type="grenade" />
<Sound shoot="" reload="" />
<FPS IsFPS="1" i0="0" i1="0" i2="0" i3="0" i4="0" i5="0" i6="0" i7="0" i8="0" d0="0" d1="0" d2="0" d3="0" d4="0" d5="0" d6="0" d7="0" d8="0" />
</Weapon>
Grenade.cpp
Quote:
// do damage only if owner is local player, otherwise we will broadcast damage multiple times
r3d_assert(owner);
if(owner->NetworkLocal)
{
obj_Player* plr = (obj_Player*)owner;
for(int i=1; i<NUM_WEAPONS_ON_PLAYER; ++i)
{
if(plr->m_Weapons[i] && plr->m_Weapons[i]->getItemID() == m_Weapon->m_itemID)
{
gClientLogic().ApplyExplosionDamage(GetPosition(), m_Weapon->m_AmmoArea, i);
break;
}
}
}
setActiveFlag(0);
clear that the damage in itemDB you choose :)
Re: [gameobject]rocket gravity.
So your code really work ? (i mean aoe damage).
If it work it should be better for me because i have some problem with it and this rocket launcher is annoying me sometime.
Re: [gameobject]rocket gravity.
Quote:
Originally Posted by
ccleanerz
So your code really work ? (i mean aoe damage).
If it work it should be better for me because i have some problem with it and this rocket launcher is annoying me sometime.
On Local GameServer u can kill zombies whit this code, but when someone join on game and use grenade the another players crashes, is something aroun ItemDB, i tink is to much damage.....
Re: [gameobject]rocket gravity.
Quote:
Originally Posted by
folkz
On Local GameServer u can kill zombies whit this code, but when someone join on game and use grenade the another players crashes, is something aroun ItemDB, i tink is to much damage.....
lol kinda weird,we have to remake a new code for aoe damage.
Re: [gameobject]rocket gravity.
Tonight after my live i will test in the local network again only with all identical files =/
I Tink is just some missing file...
Re: [gameobject]rocket gravity.
Yeap, dosent work, i tink the code can be broken....
I Dont know, i put original settings and works normaly but no damage :(
Re: [gameobject]rocket gravity.
what original settings? :)