Scripts / Projectile code ?

Author
Message
Mouaa
User Banned
Posted: 29th Dec 2016 16:32
Is there some projectile script for a projectile to fly in a given direction ? and able to know when it hits an object, the player or another mob ?
Meows
13
Years of Service
User Offline
Joined: 12th Oct 2011
Location: Totally over the Rainbow
Posted: 11th Jan 2017 14:31
Quote: "Is there some projectile script for a projectile to fly in a given direction ? and able to know when it hits an object, the player or another mob ?"


You bet, and they are all here from small_g
Air strike / bomber
https://forum.game-guru.com/thread/207801?page=9#msg2526218
friendly version
https://forum.game-guru.com/thread/207801?page=18#msg2565776
Mouaa
User Banned
Posted: 11th Jan 2017 18:22
I am seeking the projectile code to modify it to my needs.
I see this call in ai_soldier for examples

FireWeapon(e)

Where is the code for each weapon and projectiles ? It is exposed and available ?
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 13th Jan 2017 09:55 Edited at: 13th Jan 2017 09:55
They aren't adjustable via lua but you can edit the projectiles in the core folders, can't remember exactly where they are off the top of my head but try the gamecore\projectiles
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Login to post a reply

Server time is: 2024-12-23 03:53:33
Your offset time is: 2024-12-23 03:53:33