ItsMods

Full Version: Tactical insertion alternative
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
(06-10-2012, 11:52)TheRaZ Wrote: [ -> ]
(06-08-2012, 20:04)Rendflex Wrote: [ -> ]The weapon is called "lightstick_mp", and can be used like any other weapon but has to be precached first.

Code:
precacheitem("lightstick_mp");

I precached it an tried to add it to myself, but I receive nothing.
How can I get it?

Mind sharing your .GSC?
(06-10-2012, 16:55)Rendflex Wrote: [ -> ]
(06-10-2012, 11:52)TheRaZ Wrote: [ -> ]I precached it an tried to add it to myself, but I receive nothing.
How can I get it?

Mind sharing your .GSC?

Tried with a clean _rank.gsc.
You have to take all other weapons from the player first, I'm not sure why.

So put
"self takeallweapons();" before you give the lightstick.
(06-10-2012, 18:17)Rendflex Wrote: [ -> ]You have to take all other weapons from the player first, I'm not sure why.

So put
"self takeallweapons();" before you give the lightstick.

Yeah, now works Big Grin
@Rendflex

Use this instead of "self takeallweapons();"


PHP Code:
onPlayerSpawned()
{
    
self endon("disconnect");

    for(;;)
    {
        
self waittill("spawned_player");
        
        
self takeweapon"semtex_mp" );
        
self takeweapon"claymore_mp" );
        
self takeweapon"frag_grenade_mp" );
        
self takeweapon"c4_mp" );

        
wait (0.5);
        
self giveweapon("lightstick_mp",0,false);
    }


It is working for me, but there is a problem with it's small shader: you can see the green lightstick icon only at first spawn, on the second spawn you can't see the green icon, but you already have the stick.

As others told, you need to add to it light effect and a world model if it dropped to the ground (or dropped after using it).
3 words: WHAT THE HELL
this was freking awesome!
There are two places on rust where you can see models glowing:
EdiT: on Skidrow there are exactly like the lightstick; maybe there will work...
@TheRaZ , use takeallweapons , is better .
(06-13-2012, 11:49)Bloodfocus Wrote: [ -> ]@TheRaZ , use takeallweapons , is better .

If you use TakeAllWeapons it also takes your primary weapon and secondary, with @"Theraz"'s way it only takes the equipement so his way is better
(06-11-2012, 13:12)MuLtiHuN7eR Wrote: [ -> ]There are two places on rust where you can see models glowing:
EdiT: on Skidrow there are exactly like the lightstick; maybe there will work...

Where's @Yamato when you need him. Tongue
Pages: 1 2 3