Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help A few questions
#11
(07-08-2011, 23:43)4FunPlayin Wrote:
(07-08-2011, 23:42)Scripts18 Wrote:
(07-08-2011, 18:24)Lemon Wrote:
(07-08-2011, 17:24)iAegle Wrote:
(07-08-2011, 17:13)Lemon Wrote: But you don't know how to make it?

Depends on what skin and what model its used on...

I'll zombify a normal soldier skin. add some blood, rotten effect etc.

why not do a scripting code like self set model?
because that won't work

why wont it?
Reply

#12
(07-08-2011, 18:26)4FunPlayin Wrote: just edit some nva skins and sog skins, for example nva has hats and sog don't (correct me if I'm wrong)

I tried to find the skin files; but failed. Help me, you have so much free time.
Reply

#13
(07-08-2011, 23:48)Lemon Wrote:
(07-08-2011, 18:26)4FunPlayin Wrote: just edit some nva skins and sog skins, for example nva has hats and sog don't (correct me if I'm wrong)

I tried to find the skin files; but failed. Help me, you have so much free time.

if that fails hau da fuk u plan to make different skins

and please, I don't have free times, I'm programmed to download internet porn to my software.
[Image: 1fxsnb.jpg]
Reply

#14
Added two new questions.
Reply

#15
(07-09-2011, 14:40)Lemon Wrote: Added two new questions.

http://wiki.modsrepository.com/index.php...sLookingAt

level.player islookingat( trigger );
Reply

#16
(07-08-2011, 14:43)Lemon Wrote: 7 - When I spawn an entity it floats in air, how to make gravity affect it?

You can use the 'physicsLaunch' function and call it on the entity e.g.

PHP Code:
ent physicsLaunchcontact_pointinitial_force ); 

Check out the 'cratePhysics' function in 'maps\mp\gametypes\gametypes\_supplydrop.gsc'. This is the func that adds physics to the spawned crate when you get a care package.
Reply

#17
(07-13-2011, 15:36)Phl3x_ Wrote:
(07-08-2011, 14:43)Lemon Wrote: 7 - When I spawn an entity it floats in air, how to make gravity affect it?

You can use the 'physicsLaunch' function and call it on the entity e.g.

PHP Code:
ent physicsLaunchcontact_pointinitial_force ); 

Check out the 'cratePhysics' function in 'maps\mp\gametypes\gametypes\_supplydrop.gsc'. This is the func that adds physics to the spawned crate when you get a care package.

Thanks, I've found it yesterday and it works fine.

Reply

#18
(07-08-2011, 14:43)Lemon Wrote: 6 - How can I spawn an entity in front of me(I know how to spawn them, but I can't make it spawn in front of me?)

Do you mean spawn it in your line of sight? If so, you could try this:

PHP Code:
distFromPlayer 200// Distance the entity is from you, change to whatever you want
spawnPos self getPlayerEyePosition() + vectorScale(anglesToForward(self getPlayerAngles()), distFromPlayer); // This calculates the spawn pos of the entity
ent spawn("script_model"spawnPos);
ent setModel("mp_supplydrop_ally"); 

You'll also need these two functions, I think they might be in a util gsc file, but I don't know so I wrote them here:

PHP Code:
vectorScale(vecscale)
{
    return (
vec[0] * scalevec[1] * scalevec[2] * scale);
}
getPlayerEyePosition()
{
    
eye self.origin + (0060);
    if(
self getStance() == "crouch")
        
eye -= (0020);
    else if(
self getStance() == "prone")
        
eye -= (0049);

    return 
eye;

Reply

#19
(07-14-2011, 01:26)Phl3x_ Wrote:
(07-08-2011, 14:43)Lemon Wrote: 6 - How can I spawn an entity in front of me(I know how to spawn them, but I can't make it spawn in front of me?)

Do you mean spawn it in your line of sight? If so, you could try this:
I'll try it but what i really want is the sentrygun placement. sentry gun stays in front of you, you cant jump, place it everywhere etc.

Reply

#20
(07-14-2011, 01:45)Lemon Wrote: I'll try it but what i really want is the sentrygun placement. sentry gun stays in front of you, you cant jump, place it everywhere etc

Ah, change 'self getPlayerAngles()' to 'self.angles'. If you use self.angles, it doesn't use the z axis so the entity will always spawn at the same height. Make sure you change the distFromPlayer value to something smaller so it spawns closer like a sentry gun does.

If you don't want the player to be able to jump, call 'allowJump(false)' on the player.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Question Help Some Server Admin Questions! mn_acer1 2 3,346 08-03-2013, 04:11
Last Post: mn_acer1
  Help A few questions 99IRock 26 10,351 02-23-2013, 14:51
Last Post: Nekochan
  Questions for experts (infected) dol3 3 2,350 03-26-2012, 10:48
Last Post: d0h!
  A few questions about the new version of the addon JariZ 2 2,711 03-25-2012, 09:40
Last Post: OzonE
  Help Some IMPORTANT questions vin97 8 5,807 02-19-2012, 19:44
Last Post: vin97
  A few questions Lemon 2 2,344 02-01-2012, 03:45
Last Post: Lemon
  Help 2 Questions. S4ph1r 0 1,482 12-04-2011, 15:04
Last Post: S4ph1r
  mw3 log questions JariZ 6 3,511 12-02-2011, 11:38
Last Post: karelkopp
  Common Asked Questions in Shout Box Yamato 10 6,129 08-22-2011, 22:30
Last Post: Pozzuh
  Help 3 Questions Elite_Nudel 7 4,351 08-11-2011, 14:16
Last Post: BraxPL

Forum Jump:


Users browsing this thread:
11 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.