View unanswered posts | View active topics It is currently Wed Apr 24, 2024 11:11 pm



Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
 COD4 Ghillie Suit Actor UPDATE[5/25] 
Author Message
User avatar

Joined: Sat Jan 17, 2009 8:53 am
Posts: 79
Location: Philippines
Reply with quote
Post COD4 Ghillie Suit Actor UPDATE[5/25]
Yeah. This is my first mod so forgive me if it's not cool or anything. I think it's cool.

This is a re-sprite don't flame me of the Soldier Template and I just threw in a bit of Lua. I've been working on it all day so that I can try to learn Lua. :P
I can't think of any name so I called him "Ghillie Suit Soldier". (sucks) :P
Image
I couldn't take an awesome screenshot of it shooting. I couldn't press Print Screen while crouching while aiming and shooting.

Crouch down to become "invisible". Works best alone. And with a Heavy Sniper Rifle.
If you move left and right, you are DETECTED.
If you shoot, you are DETECTED.*

*I know how to make yourself detected for 2 seconds when you shoot, it just somehow doesn't work. Anyway, I removed the code from it.

EDIT: mail2345 fixed the 2 seconds thing. Thanks! :D

I kinda of wanted to make the M21 Suppressed Rifle, but I kinda failed at doing it with the Gun Template, so I said "Screw it!" and gave up for now. Might try some other time. If anyone wants to give it a go however, the sprite and the sound is in the zip... Not to worry, though. It's only 1.35 MB.

Please give me comments and suggestions so that I will be able to improve on my future mods. :P

UPDATE: I made you invisble most of the time. When they look, and you're within range, you're visible. (As Flammablezombie requested). And I removed the flashing thing. It totally defeats the purpose of looking invisible. Still kinda glitchy, though.


Attachments:
File comment: Makes you invisble when you crouch.
Ghillie.rte.zip [1.36 MiB]
Downloaded 1805 times
File comment: Makes you invisble when they're not looking within a 350px box. (not radius)
Ghillie.zip [1.36 MiB]
Downloaded 516 times


Last edited by ramonimbao on Mon May 25, 2009 12:13 pm, edited 4 times in total.

Sun May 24, 2009 5:04 pm
Profile YIM WWW
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: COD4 Ghillie Suit Actor
When lua code does not work, it's a good idea to just comment it out so someone can fix it.

That aside, I found your stealth method interesting.

Of course there is the issue of your own guys coming close and shooting at you, but it works.

Anyway, I have a steath disabled for two seconds thing fix.

I would suggest having an effect or something to show it's stealthed


Attachments:
File comment: Txt because the fourms won't let me upload lua files.
Camo.txt [826 Bytes]
Downloaded 409 times
Sun May 24, 2009 5:40 pm
Profile
User avatar

Joined: Sat Jan 17, 2009 8:53 am
Posts: 79
Location: Philippines
Reply with quote
Post Re: COD4 Ghillie Suit Actor
Wait. Is that how you do the if not? I thought it was if == 0. O.o

Okay. Thanks. Gonna re-upload it with the fix. :D


Sun May 24, 2009 5:46 pm
Profile YIM WWW
User avatar

Joined: Wed May 20, 2009 10:06 am
Posts: 163
Location: Sweden
Reply with quote
Post Re: COD4 Ghillie Suit Actor
Due to the fact that ghillie suits are totally awesome imo, this is an instant DL! :grin:


Sun May 24, 2009 6:29 pm
Profile
User avatar

Joined: Wed Jan 14, 2009 7:12 pm
Posts: 1525
Location: In between your sister's legs, showing her how to use a... PS3 controller!
Reply with quote
Post Re: COD4 Ghillie Suit Actor
I think you should only be noticed when moving within a certain distance of an enemy, and even then, only when the enemy is facing you. Like in the game.


Sun May 24, 2009 6:32 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Wed Sep 05, 2007 4:14 am
Posts: 3966
Location: Canadida
Reply with quote
Post Re: COD4 Ghillie Suit Actor
Eh, did you use the strings: UInputMan:MouseButtonPressed, UInputMan:MouseButtonHeld , UInputMan:KeyReleased, and UInputMan:KeyHeld?

If UInputMan:MouseButtonPressed(#) then
*Insert Detect Code*
Else
If UInputMan:MouseButtonHeld(#) then
*Insert Detect Code*
Else
If UInputMan:MouseButtonReleased(#) then
*Start Timer*
If Timer:IsPastSimMS(?) Then
*Stop Timer*
*Reset Timer*
*Insert Invisible Code*

I doubt that this'd help you, but for real help, you may need to ask Grif or one of the two Lua Engineers.


Sun May 24, 2009 7:05 pm
Profile
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: COD4 Ghillie Suit Actor
Controllers tend to work better.

They work on *any* control set.


Sun May 24, 2009 8:14 pm
Profile
User avatar

Joined: Sat Jan 17, 2009 8:53 am
Posts: 79
Location: Philippines
Reply with quote
Post Re: COD4 Ghillie Suit Actor UPDATE[5/25]
I added an update to the OP. :D


Mon May 25, 2009 12:12 pm
Profile YIM WWW
User avatar

Joined: Wed Jan 14, 2009 7:12 pm
Posts: 1525
Location: In between your sister's legs, showing her how to use a... PS3 controller!
Reply with quote
Post Re: COD4 Ghillie Suit Actor UPDATE[5/25]
You listened to meh! YAAAAAY. I will now use this. But I thought they should be able to crouch and crawl outside of a certain range of enemy sight, this one can walk and still not be seen. That's like a tree running towards you and you not caring.


Mon May 25, 2009 12:18 pm
Profile
User avatar

Joined: Sat Jan 17, 2009 8:53 am
Posts: 79
Location: Philippines
Reply with quote
Post Re: COD4 Ghillie Suit Actor UPDATE[5/25]
Flammablezombie wrote:
You listened to meh! YAAAAAY. I will now use this. But I thought they should be able to crouch and crawl outside of a certain range of enemy sight, this one can walk and still not be seen. That's like a tree running towards you and you not caring.


Really? I thought I fixed that... Oh, man. I gotta try and fix it again? (sigh) Okay. :P


Mon May 25, 2009 12:41 pm
Profile YIM WWW
User avatar

Joined: Sat Dec 13, 2008 3:40 pm
Posts: 21
Reply with quote
Post Re: COD4 Ghillie Suit Actor UPDATE[5/25]
I checked it out, but whenever I tried to manually reload he picked up shields, diggers, and shovels out of thin air. A bit strange.


Tue May 26, 2009 2:35 pm
Profile

Joined: Sat Jan 13, 2007 11:04 pm
Posts: 2932
Reply with quote
Post Re: COD4 Ghillie Suit Actor UPDATE[5/25]
TrickySoldier wrote:
I checked it out, but whenever I tried to manually reload he picked up shields, diggers, and shovels out of thin air. A bit strange.


Thats what happens when you set the CharHeight variable very high on a charater. Besides determining where the health counter is supposed to appear, it also controls the reach within the character can pick up dropped stuff.


Tue May 26, 2009 2:44 pm
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: COD4 Ghillie Suit Actor UPDATE[5/25]
numgun wrote:
Thats what happens when you set the CharHeight variable very high on a charater. Besides determining where the health counter is supposed to appear, it also controls the reach within the character can pick up dropped stuff.


Holy ♥♥♥♥ it'd kill you to ask Data for a "REACHLENGTH" variable?

What in the name of god does CHARHEIGHT have to do with HOW FAR AWAY YOU CAN REACH? They're seperate variables entirely. Only you are eastern european enough to combine variables like that.


Tue May 26, 2009 3:02 pm
Profile

Joined: Sat Jan 13, 2007 11:04 pm
Posts: 2932
Reply with quote
Post Re: COD4 Ghillie Suit Actor UPDATE[5/25]
Grif wrote:
Only you are eastern european enough to combine variables like that.


Hmm, enough what? Also blame Data, he had it like that since build... 1? :D


Tue May 26, 2009 7:43 pm
Profile
User avatar

Joined: Sun Dec 09, 2007 3:08 pm
Posts: 481
Location: Islamic Republic of Bradistan, Yorkshire, England
Reply with quote
Post Re: COD4 Ghillie Suit Actor UPDATE[5/25]
It needs to be more olive coloured, rather than dark green.


Tue May 26, 2009 8:44 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 17 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.071s | 18 Queries | GZIP : Off ]