Free Models and Media / RE to "Free poison gas bomb + switch, kill a bunch of soldier at once"

Author
Message
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 23rd Aug 2015 17:20 Edited at: 25th Aug 2015 16:48
Because that thread was closed ( https://forum.game-guru.com/thread/211716#top ) and I just find it for a few days ago.
I've used all setting from that post, but I can't make that damn switch to recognize if the player already HAVE or NOT that bloody gasmask
Any idea why doesn't work ?
Here is the original script of that switch:



Later Edit: Here is the new gas mask script modified with smallg's indications (read below of my post) Thanks Smallg !
The script for gasmask was a little modified by me to show mask from rear glass view:



Conclusion: WITH or WITHOUT that gas mask, the player is hurt when use that switch....

The view for gasmask can be used free, because is maded by me.
Just multiply x 4 the same attached photo in the ... /scriptbank/images/gasmask/000.png (and 001.png, 002.png, 003.png) .

Well...for a moment please view a little video with the problem:

Smile today, tomorrow could be worse

http://bestradiolarry.ro/fps/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."

Attachments

Login to view attachments
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 25th Aug 2015 08:50
Any idea about that switch ?
Smile today, tomorrow could be worse

http://bestradiolarry.ro/fps/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 25th Aug 2015 12:09
i dont think you need your local variables
local plrHasGasmask = {} --no array using this
local plrHasMask= {} --no array using this either
local plrHasGasmask = 0 --not used and shouldnt be local anyway

the rest looks ok without testing it but can you also include your script for the actual gas bomb/trigger as it's different to the one you posted above?
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 25th Aug 2015 14:20 Edited at: 30th Aug 2015 15:28
smallg wrote: "i dont think you need your local variables
local plrHasGasmask = {} --no array using this
local plrHasMask= {} --no array using this either
local plrHasGasmask = 0 --not used and shouldnt be local anyway"

This is the part of script from gas mask, and I've asked about switch (see first code)

The quest is: how can I make that switch to know if the player have or not gas mask active ?
The script need inside something like:

or need to place somewhere in the switch script the ID of gas mask ?!?
Smile today, tomorrow could be worse

http://bestradiolarry.ro/fps/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 30th Aug 2015 12:02
Nothing new here ?!?
Smile today, tomorrow could be worse

http://bestradiolarry.ro/fps/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 30th Aug 2015 13:32
Sorry Larry I had missed this thread, now I do not remember nothing about it, so please let me till tomorrow to reallize it.

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 30th Aug 2015 15:26
Quote: "Sorry Larry I had missed this thread, now I do not remember nothing about it, so please let me till tomorrow to reallize it.

3com"
Thanks, mate!
Smile today, tomorrow could be worse

http://bestradiolarry.ro/fps/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 30th Aug 2015 16:20
I've edited and re-upload zip file in original thread, but for any reaon it is not shown in my post, never before I had do that, so I don`t know if is normal.

Btw basically you've to change both scripts by those others:

gasmask.lua



switch.lua

-


hth.

3com

Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 1st Sep 2015 09:59 Edited at: 1st Sep 2015 10:25
3com wrote: "Btw basically you've to change both scripts by those others"

Working, my problem was because I've changed the default "E" key with "g" key for gas mask collect.
So, for now I try to use additional hud for gas mask view as a trigger one.
But still I have no clue how can I make to put off the gas mask hud after the player leave the switch zone.

gasmask trigger code:



Is something wrong from line 65 to end of code.....
P.S. Maybe can be adapted the "night vision" of smallg's script.
Smile today, tomorrow could be worse

http://bestradiolarry.ro/fps/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 1st Sep 2015 13:37 Edited at: 1st Sep 2015 14:04
Well, I finished using as trigger For the @ 3com's gasmask, I've just put few more words in the text of prompt:
"Press E To pick up gas mask. Use G to activate/deactivate" .
The trigger script is below and read inside all do you need to know about this script:



And one small video as example (I've used one tree for this trigger)

Smile today, tomorrow could be worse

http://bestradiolarry.ro/fps/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 1st Sep 2015 18:36
Nice one Larry!

Thanks for share.

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 1st Sep 2015 19:21 Edited at: 1st Sep 2015 19:22
Old Larry wrote: "The view for gasmask can be used free, because is maded by me.
Just multiply x 4 the same attached photo in the ... /scriptbank/images/gasmask/000.png (and 001.png, 002.png, 003.png) ."

Find that in my first post of this page.
I'm happy you like it
Smile today, tomorrow could be worse

http://bestradiolarry.ro/fps/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 11th Sep 2015 09:27 Edited at: 11th Sep 2015 09:28
I've included this mask and gas bomb in to one level of my game named "Silence Death" :
https://forum.game-guru.com/thread/208781 and it works very fine.
Smile today, tomorrow could be worse

http://bestradiolarry.ro/fps/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."

Login to post a reply

Server time is: 2024-11-24 03:17:40
Your offset time is: 2024-11-24 03:17:40