![]() |
#1 |
Join Date: Sep 2007
Posts Rated Helpful 0 Times
|
LUA
I've searched back to July 7, so here it goes....
Can someone please post the lines I put in lua.txt to stop people from spawning with nades? Thanks!!! *Frags* Last edited by sir_frags; 11-06-2007 at 04:19 PM. |
![]() |
![]() |
![]() |
#2 |
Join Date: Sep 2007
Posts Rated Helpful 0 Times
|
Unfortunately it's not a one liner fix. You'd have to edit all gameplays to have this feature. Basically on respawn or backpack pickup you'd need to remove the grenades using RemoveWeapon
|
![]() |
![]() |
![]() |
#3 |
Insane Coder
|
if you want it for a custom map you can have this function in your maps .lua file.
Code:
function player_spawn( player_entity ) local player = CastToPlayer( player_entity ) player:RemoveAmmo( Ammo.kGren1, 4 ) player:RemoveAmmo( Ammo.kGren2, 4 ) end |
![]() |
![]() |
![]() |
#4 |
Join Date: May 2007
Posts Rated Helpful 0 Times
|
Can I take this thread a step further and ask:
How do you give full grenades at spawn? Lastly, how do you give armor & supplies at spawn? |
![]() |
![]() |
![]() |
#5 |
Insane Coder
|
same as the one i posted but replace the RemoveAmmo lines with:
player:AddAmmo( Ammo.kGren1, 4 ) player:AddAmmo( Ammo.kGren2, 4 ) |
![]() |
![]() |
![]() |
#6 | |
Join Date: Mar 2007
Posts Rated Helpful 5 Times
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Join Date: May 2007
Posts Rated Helpful 0 Times
|
I think I found the rest of the LUA code I need on a previous posting. Ironically, one of my postings. I'll put the link here if anyone is wondering about adding ammo and cells and armor like I was asking. And like this thread showed.
http://www.fortress-forever.com/foru...ht=Ammo.kGren1 |
![]() |
![]() |
![]() |
#8 |
Join Date: Mar 2007
Posts Rated Helpful 0 Times
|
the lua is open source, so take a look at the lua files form dustbowl, they don't have nades, so it should be somewhere in that lua file
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|