Scripts / WeaponScripts

Author
Message
Abu_7af9
5
Years of Service
User Offline
Joined: 1st Jan 2019
Location:
Posted: 28th Feb 2019 13:02 Edited at: 28th Feb 2019 13:21
Hi everyone

I'm developing a game using GG, and i'm facing this problem:



Can somebody help me?
PM
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 28th Feb 2019 13:30
It's hard coded. The weapons they drop are not the weapons in the entity bank, they're the player weapons in your files/gamecore/guns folder, these don't use scripts, there are various variables that can be changed in their gunspec files, but i don't think that would be one of them.

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
Corno_1
GameGuru Tool Maker
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 28th Feb 2019 16:57
It is hardcoded in G-Entity.cpp line 2289 in the GG source code.
You need to recompile GG to change it. Sry
Ebe Editor Free - Build your own EBE structures with easy and without editing any text files
Thread and Download
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 28th Feb 2019 16:58
yh doesn't look like we have access to that, would need to make a request on github i guess
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 28th Feb 2019 20:16
Can you script a (player gets near weapon), then print "press 'e' to pickup __x__ weapon"
in Arabic? It could appear directly above the English text, and in slightly larger letters, then
it would look like caption. Another idea would be to put a pic/ sprite of the writing that would
cover the engine writing.

So I'm asking if there is a call to find the location (x,y,z) coordinates to weapons,
and compare player to that. I'm sure there is an entity location and get entity name.
Is it so for weapon?- you experts?
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 28th Feb 2019 21:02 Edited at: 28th Feb 2019 21:07
Sorry to say it appears not. The weapons don't even show up using ray casting instructions so I'm not sure how you could even detect that they are there from Lua.

Presumably they are 'objects' but not 'entities' so there doesn't appear to be any way of finding the position of them when dropped.

If it is possible to turn off the automatic engine dropping of collectable weapons then maybe you could replace it with a custom weapon drop system.

Edited to add: I think the cantakeweapon parameter if set to 0 will get rid of the text but then you won't be able to take the weapon and I'm not sure how to make the weapon that is dropped disappear.
Been there, done that, got all the T-Shirts!
PM

Login to post a reply

Server time is: 2024-12-22 14:46:42
Your offset time is: 2024-12-22 14:46:42